Search code examples
xcodecode-signingcode-signing-entitlements

Xcode 6.3 Code Signing Issues after update


I've updated recently to Xcode 6.3 and started having some strange code signing issues. Occasionally Xcode will start complain about the code signing issues. Acd either will have issue like :

invalid or unsupported format for signature ... Command /usr/bin/codesign failed with exit code 1

or

... Command /usr/bin/codesign failed with exit code 11

Can not find pattern yet, but looks like issue with Xcode code sign, as sometimes after cleanup and restart of Xcode it will work.

I did not change any settings regarding code signing. Project structure is quite complicated, it has referenced projects and pods.

Any help appreciated.

** Update **

It did not help for me to remove derived data or restarting Xcode. But it did work if I removed the project and downloaded fresh from git. This removed Xcode files which are not committed to git.

Again after clean it has stopped working. And in the console logs I've got something like this:

codesign[4111]: Internal error unloading bundle CFBundle 0x7fb44a40adc0 <(null)> (framework, not loaded)

** Another Update **

Found on twitter someone who has the same issue. Looks like the issue is caused by --deep option in code signing.

https://github.com/atom/atom-shell/issues/1396

Solution is to not code sign app and frameworks inside with --deep. But rather code sign each framework separately.

http://furbo.org/2013/10/17/code-signing-and-mavericks/


Solution

  • Just had this happen to me as well after the latest Xcode update. But Xcode had been advising me to update my project settings for a while now, I just hadn't got round to it. The link you provide explains it well.

    It actually shows up as an issue in the navigator, and Xcode will offer to fix it automatically for you when you select the issue. You just need to remove the --deep option from your Build Settings yourself.

    This worked with my two 3rd-party frameworks, Sparkle and Syphon.