Xcode - Bundle format unrecognized, invalid, or unsuitable

dwinnbrown picture dwinnbrown · Jun 9, 2016 · Viewed 16.1k times · Source

Ok so I have just about managed to get to this point on my own but am now having some issues code signing the app specifically with the AdMob framework. I am getting this error: Command /usr/bin/codesign failed with exit code 1 the details it are giving are as follows: Applications/MyApp.app/Frameworks/GoogleMobileAds.framework: bundle format unrecognized, invalid, or unsuitable

I have read the other posts on the site and tried many different ways of fixing this. If I untick 'Code Sign On Copy' the archive builds successfully but then fails on validation with a match error. This is how I have my frameworks set up currently: enter image description here Any help would be much appreciated!

Answer

digitalHound picture digitalHound · Aug 3, 2016

I saw this same issue with a different framework.

The solution for me was removing the framework from the 'Embedded Binaries' section and only adding it to the 'Linked Frameworks and Libraries' section in the target 'General' tab.

enter image description here