问题
I'm trying to launch a helper application that is located inside my main apps's bundle directory with a launch argument while sandboxing is turned on. The helper application is launched via /usr/bin/open
through NSTask
or posix_spawn
. While the helper is launched, it never receives any launch arguments I've sent with it. This must have something to do with the apps both being sandboxed. What's the official way to do this?
来源:https://stackoverflow.com/questions/33473610/launch-helper-application-with-launch-arguments-in-the-sandbox