How can I terminate my app in a helper app with sandboxing enabled?

前端 未结 3 2128
慢半拍i
慢半拍i 2020-12-17 05:15

I\'ve created a helper app, which monitors iTunes and launches/terminates the main app.

The launching works perfectly. The only problem is that I\'m not allowed to t

相关标签:
3条回答
  • 2020-12-17 05:47

    Got it, I had to add a temporary entitlement exception:

    <key>com.apple.security.temporary-exception.apple-events</key>
    <array>
        <string>mainAppBundleIdentifier</string>
    </array>
    
    0 讨论(0)
  • 2020-12-17 05:54

    If you place your apps in an Application Group you can send a signal to the main app to terminate itself.

    0 讨论(0)
  • 2020-12-17 05:57

    The recommended way to IPC in 10.8 is using NSXPCConnection.

    See the code at Sandboxing with NSXPCConnection

    0 讨论(0)
提交回复
热议问题