Re: fileManagerWithAuthorization:

2021-03-17 Thread Allan Odgaard via Cocoa-dev
On 15 Mar 2021, at 16:24, Keary Suska wrote: That forum thread does not, as far as I can tell, say that you need a provisioning profile for non-sandboxed apps. In that thread, Quinn seems to acnknowledge that you need “special permission [from Apple] for local development” But he also says

Re: fileManagerWithAuthorization:

2021-03-15 Thread Keary Suska via Cocoa-dev
That forum thread does not, as far as I can tell, say that you need a provisioning profile for non-sandboxed apps. In fact, the final recommendation is to turn off sandboxing to test privileged operations without the need for entitlements. However, it appears an app must still be notarized (ht

Re: fileManagerWithAuthorization:

2021-03-14 Thread Allan Odgaard via Cocoa-dev
On 14 Mar 2021, at 19:44, Michael Tsai wrote: I think you need to apply to Apple and get a provisioning profile, even if the app isn't sandboxed: https://developer.apple.com/forums/thread/653890 Thanks, what a disappointing policy decision by Apple. Especially when they are trying to get ri

Re: fileManagerWithAuthorization:

2021-03-14 Thread Michael Tsai via Cocoa-dev
I think you need to apply to Apple and get a provisioning profile, even if the app isn't sandboxed: https://developer.apple.com/forums/thread/653890 --Michael > On Mar 14, 2021, at 5:43 AM, Allan Odgaard via Cocoa-dev > wrote: > > I’ve tried something like the code below to save a file not o

Re: fileManagerWithAuthorization:

2021-03-14 Thread Rob Petrovec via Cocoa-dev
That error message is less than helpful. Does the current user have permissions to write to that directory, let alone to the file being replaced? if not, no amount of entitlements will let you do what you want. —Rob > On Mar 14, 2021, at 3:43 AM, Allan Odgaard via Cocoa-dev > wrote: > >

fileManagerWithAuthorization:

2021-03-14 Thread Allan Odgaard via Cocoa-dev
I’ve tried something like the code below to save a file not owned by current user. I have codesigned the application using hardened runtime and the `com.apple.developer.security.privileged-file-operations` entitlement (although this is outside App Store and no sandboxing). It doesn’t work an