NSData -writeToFile: returns FALSE

Carl Hoefs

I think I might have an entitlements issue with my in-house macOS app (10.14). It needs to write to the user's ~/Desktop. NSData's -writeToFile: returns FALSE, even if I try to write to /tmp. Heck, even if I try to write to /dev/null.

I have App Sandbox=NO, and com.apple.security.files.user-selected.read-write=YES

Is there another entitlement I'm needing?


Join xcode@apple-dev.groups.io to automatically receive all group messages.