Indeed, this information often even makes it into the app store. You can sometimes decompile (or run strings on) an app and see a developer's home directory, for example.
There is a pitch on the Swift forum to encode only the file name in a binary instead of the entire path, or hash it. The OP there makes some points about file size, even.
https://forums.swift.org/t/we-need-filename/