In macOS Tahoe 26.7 or Sequoia 15.7.5 (and probably other prior versions), when you install a .pkg, symlinks are followed:
i.e. if your payload install a file to /Users/Shared/my-folder and, on the target volume, the /Users/Shared/my-folder item is a symbolic link to /Users/Shared/actual-folder, the file will be installed inside /Users/Shared/actual-folder.
It used to be possible to tell the installation framework/mechanism not to follow symbolic links by using the followSymLinks attribute in the raw package PackageInfo file. And in this case, the symbolic link would be replaced by a real directory and the file would be installed where it was supposed to be installed.
This attribute is apparently not taken into account anymore by the framework/mechanism.
[Q] Is this on purpose or is it a bug (in shove for instance)? If it is on purpose, why was it considered a good idea to always follow symbolic links considering the security issues this can create?
Remember that the goal of DevForums is to help developers build products for Apple platforms. Given that, I can answer the implicit question here, namely, “Should I ship an installer package that relies on the the Apple installer following symlinks?” And the answer to that is, as I’m sure you’re aware, “No.”
If that’s not the question you want answered, feel free to reply back here with more details, but please keep in mind tip 3 of Quinn’s Top Ten DevForums Tips.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"