I\'ve a simple unix tool made by me that launches the main cocoa app from a shell.
I need to sandbox it but when I run it, it crashes with error \"Illegal instructio
While @Nick Moore's answer is perfectly fine, there's an option for this in today's Xcode under Packaging - Create Info.plist Section in Binary (CREATE_INFOPLIST_SECTION_IN_BINARY). All that's needed is setting thue to Yes.