Is it possible to run xcrun from a sandboxed macOS app?
The following code doesn't work and raises the error message in the console.
Are there any workarounds for this? I don't think it is possible to get read permission's for the /usr/bin directory from the user. Or should I be creating a bug report and trying to work through a temporary exception?
The following code doesn't work and raises the error message in the console.
Code Block let task = Process() task.executableURL = URL(fileURLWithPath: "/usr/bin/xcrun") try! task.run()
Code Block xcrun: error: cannot be used within an App Sandbox.
Are there any workarounds for this? I don't think it is possible to get read permission's for the /usr/bin directory from the user. Or should I be creating a bug report and trying to work through a temporary exception?