I'm in the process of enabling sandboxing, and the hardened runtime for my app, and I'm trying to share some files written my a group container shared by my main application, and an XPC service that it bundles.
Unfortunately, any files or directories I create in the group container have
com.apple.quarantine
set on them.It doesn't seem to matter if I use NSFileManager API to create folders/files, or use an external tool like
/usr/bin/ditto
.Is there any way to prevent this?