Launch Helper Application with Launch Arguments in the Sandbox

久未见 提交于 2019-12-07 13:35:36

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!