Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Codesign and Sandbox Helper Application in Xcode 4?

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!

like image 353
MatterGoal Avatar asked Jun 27 '12 17:06

MatterGoal


1 Answers

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.

like image 80
iheartwifi Avatar answered Oct 13 '22 19:10

iheartwifi