Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode - Bundle format unrecognized, invalid, or unsuitable

Tags:

xcode

ios

admob

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!

like image 667
dwinnbrown Avatar asked Jun 09 '16 08:06

dwinnbrown


4 Answers

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

like image 103
digitalHound Avatar answered Nov 09 '22 23:11

digitalHound


I had a similar problem but with a different framework. The solution for me was to make sure that the framework was present in these three places:

General tab:

  1. Embedded Binaries
  2. Linked Frameworks and Libraries

Build Phases tab:

  1. Embed Frameworks
like image 39
Cue Avatar answered Nov 10 '22 01:11

Cue


I have just seen the same issue but with a different framework that was the social framework and then I did below: go to build phase -> embed frameworks -> press copy only when installing check box then it worked with me with no error enter image description here

like image 1
islam kasem Avatar answered Nov 10 '22 01:11

islam kasem


I ran into this issue when using a different framework. Clear the DerivedData solve this issue. https://docs.sentiance.com/sdk/troubleshooting/ios/bundle-format-unrecognized-invalid-or-unsuitable

  1. Go to Xcode menu bar and select File > Project Settings (or Workspace Settings).
  2. Under Per-User Workspace Settings, find the shortcut to DerivedData folder and open it via Finder.
  3. Remove the entire content of the folder and empty the Trash.
  4. Restart Xcode.
like image 1
Frank Teng Avatar answered Nov 10 '22 01:11

Frank Teng