danner.tech
danner.tech

Reputation: 109

Xcode Build Failing due to "bundle format unrecognized, invalid, or unsuitable"

I have a dilemma in regards to not being able to run a React Native project in Xcode because of an error that I have spent days trying to resolve.

I have attached a screenshot of the error screenshot of build error in Xcode

It is stating that:

"/Users/diamoniquedanner/Library/Developer/Xcode/DerivedData/Entrepreneur-elimewlshojayqdyaklhiziodxbi/Build/Products/Debug-iphoneos/Entrepreneur.app: bundle format unrecognized, invalid, or unsuitable Command /usr/bin/codesign failed with exit code 1"

I would like to state that this project was handed to me by a client and I have tried creating anew provisioning profile, create a new certificate, etc. (however I may be doing it wrong) and I cannot contact the old team for any resources.

Best regards, Dia'Monique

Upvotes: 3

Views: 3161

Answers (4)

xjsXjtu
xjsXjtu

Reputation: 161

I just remove the framework from the "Frameworks, Libraries, and Embedied Content", then add it back again.

It works. I don't know why, maybe it's a Xcode bug.

Upvotes: 0

Evan Lamping
Evan Lamping

Reputation: 131

Try deleting the DerivedData folder, cleaning the project and trying again.

If that doesn't work, you can:

  • Select the Pods Project
  • In the main editor window, select the Pod in the targets dropdown
  • Under the general tab, and under the identity header, click choose Info.plist file
  • Select the plist file for the Pod

Upvotes: 3

Anjula Serasinghe
Anjula Serasinghe

Reputation: 827

Like most of them have replied one main issue could the be the difference of the IOS versions it was created thus the derived data could be conflicting . As for the first step delete any derived that on your previous versions and also delete any builds . If you are using any specific files with a common target make sure you have not duplicated them as well . Clean and build the folder .

As far as frameworks go , Make sure you have the frameworks in these 3 places in this order

General tab:

-Embedded Binaries ,

-Linked Frameworks and Libraries

Build Phases tab:

-Embed Frameworks

Also if you currently have any frameworks in Embedded binaries remove them from that and add to Liked Frameworks and Libraries section

Upvotes: 0

otusweb
otusweb

Reputation: 1678

More of exploratatory questions than an answer per say.

There a lot of question on stackoverflow with the same error. Did you try the solution outlined in those: - Code sign error : bundle format unrecognized, invalid, or unsuitable - Xcode - Bundle format unrecognized, invalid, or unsuitable

Are there any error or warning in the build before the code signing step?

Upvotes: 0

Related Questions