Hi did you make any progress on this?
Post
Replies
Boosts
Views
Activity
OK so it does work reliably if instead I use com.apple.security.temporary-exception.files.home-relative-path.read-write and put my symlink in the user library.
Would still be interested to know the answer to my original question if anyone has some insight!
OK, so I was able to obtain the Privileged File Operations entitlement, but now I am needing some help getting it to work.
When I request authorization, I see the message that my app "wants to install symlinks in /usr/local.
Is it possible to change this path or is this API only for this location? I've only found a couple examples of people using it online and the ones I've come across are using it for installing command line tools.
When I get my authorization, I call the function signature specified in the documentation but then I crash with "Invalid path/URL argument" ... The URLs work if I force the operation with a temporary exception, so not sure what the issue is there.
I get this crash even if I try to create my symlink in /usr/local/.
Perhaps I can get some code-level support on this? Any help appreciated!