Payload/MyApp.app: object file format unrecognized, invalid, or unsuitable
didge opened this issue · 1 comments
didge commented
The first time I used your script, I got the following error:
Payload/MyApp.app: object file format unrecognized, invalid, or unsuitable
Googling, I discovered that on Mountain Lion, users had to set CODESIGN_ALLOCATE before executing codesign like so:
export CODESIGN_ALLOCATE="/Applications/Xcode.app/Contents/Developer/usr/bin/codesign_allocate"
I added this to your script, just before codesign is executed and it worked great!
Thanks so much for this script, it really saved me a lot of time!
RichardBronosky commented
Thanks for the feedback. I've added a note to the README.