How to Codesign and Sandbox Helper Application in Xcode 4?

≯℡__Kan透↙ 提交于 2019-11-29 12:55:49

问题


This is the problem: I have a MainApp that contains an HelperApp. The Helper app is used for the login items so i need to differentiate MainApp and HelperApp bundle IDs. I copied the HelperApp into MainApp thanks to the BuildPhase Copy. If I Codesign and Sandbox the HelperApp the upload phase stops... with error related to the provisioning profile. If I don't code sign/sandbox the HelperApp the upload works but after 2 minutes I receive an invalid binary" that warns me about the "App sandbox not enabled" on the helper app.

Do you know which is the correct practice to Sandbox and app with Helper app in it? I can't find NOTHING in the documentation!


回答1:


I had exactly the same scenario: a MainApp that contains a HelperApp, which is used to launch the MainApp at login.

The "invalid binary - app sandbox not enabled" problem got resolved by making sure that the Code Signing Identity for both apps in XCode is set to "3rd Party Mac Developer Application".

Then, after submitting for review, I got the "Waiting for Review" notification and no more "invalid binary" errors.




回答2:


You could try deleting your helper app, then adding it again this way: in Xcode go to file, add new files to "Your project", and import your helper app. Then, make sure they both have valid provisioning profiles for distribution.



来源:https://stackoverflow.com/questions/11231712/how-to-codesign-and-sandbox-helper-application-in-xcode-4

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