Post

Replies

Boosts

Views

Activity

How to use NSTask from a sandboxed XPC service
I have an app, well, a prototype of an app. The main app is sandboxed. The XPC service is sandboxed as well. When I try to use NSTask from the XPC service it fails with: Exception: launch path not accessible The binary I'm trying to launch from the XPC is located inside the XPC sandbox folder. It has the correct permissions, and it runs fine. If I disable the XPC service sandbox, it works. If I go back and enable it, it fails with the error from above. Does anyone knows what's failing here and how to make it work?
7
0
1.5k
Sep ’20