We have a non-XCode application using a custom build process that produces an app bundle, and we'd like to sign it to make it work nicely with Gatekeeper. We created a Developer ID, generate a certificate for distribution outside of the Mac App Store with it, everything worked fine. Now, we want to sign the code using the codesign command-line utility. But it doesn't work; trying to run the command:
codesign -s "Developer ID Application: ..." --deep -v OurApplication.app
always produces the error:
OurApplication.app: bundle format unrecognized, invalid, or unsuitable In subcomponent: /path/to/OurApplication.app/Contents/MacOS/SomeDir/SomeDir-1.5
The SomeDir/SomeDir-1.5 path is created by our build process and basically has to be there for the application to run.
Any idea what's going on here? Or any hint on how I can get any additional information? The error message is not really informative…
Thanks.