Dear all, we are developing a File Provider Extension that synchronises files and folders across devices using our custom upload/download server. We have noticed that every file written in the temp folder of the extension have the quarantine flag set, thus avoiding any app or executable to be launched from the folder itself.
Specifically in each file we see those Quarantine Keys:
["LSQuarantineIsOwnedByCurrentUser": 1, "LSQuarantineTimeStamp": 2022-03-03 16:30:54 +0000, "LSQuarantineAgentName": XXXXX, "LSQuarantineType": LSQuarantineTypeSandboxed]
We also tried the following:
- LSFileQuarantineEnabled = NO in the info.plist
- com.apple.security.files.user-selected.executable = true in the entitlements
(in the main app and extension target)
- We tried in the application to use the following swift code:
var resourcevalues = URLResourceValues()
resourcevalues.quarantineProperties = nil
try self.setResourceValues(resourcevalues)
We didn't get any error using the code above, but the quarantine flag is still present.
All without success.
Only using this command everything works
sudo xattr -dr com.apple.quarantine path/to/AppOrExecutable
which, of course, is not feasible.
Any help on this?