0

After many problems to codesign an Mac OSX app finally I got a working combination (what to sign, where it should be located).

My question is if there's some system command to do the exact same verification the system does on a downloaded app. I've used codesign --display and RB App Checker that passed the verification in some cases but when downloading the app didn't succeed.

tru7
  • 6,348
  • 5
  • 35
  • 59
  • 1
    How are you packaging your app? Zip? An installer? Some forms of packaging will corrupt the code signing. This may be why you see it failing after downloading. – martinez314 Jan 08 '15 at 21:22
  • Sorry for the vague question, it was a long day. I am packing on a dmg, I've made sure there are no changes in the packed app. – tru7 Jan 09 '15 at 10:50

1 Answers1

1

You don't say what version of Mac OS X you develop under, or what version of Mac OS X you're downloading and testing on. That's important because there were changes in code signatures and GateKeeper in Mavericks and later.

See Apple's tech note for details, but what I use is:

spctl -a -v path/to/my.app
JWWalker
  • 22,385
  • 6
  • 55
  • 76
  • Thank you! that's what I was looking for and in case of failure it gives a concies reason. – tru7 Jan 09 '15 at 10:51