I am writing temporary files from a sandboxed app that need to be executable, but they are marked as quarantine despite changing the usual settings.
I've explicitly set LSFileQuarantineEnabled
to NO in my app's Info.plist just in case (this is already supposed to be the default) with no change.
Based on a comment at How can I stop my app from setting the "quarantine" bit?, I've also tried adding com.apple.security.files.user-selected.executable = YES
to my app's entitlements files but that has no effect either. (The destination files are not "user selected" — maybe that's why not?)
Is there any other configuration that would prevent the system from marking written files as quarantined? Note that my app does not need to pass Apple censorship; I am opting in to the sandbox voluntarily.