Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Code sign error : bundle format unrecognized, invalid, or unsuitable

Im working on an iOS app, Swift language, iOS8, Xcode 6.1. It was running fine on the iPad. Then I added a "Resource" folder reference to the project, after which I am getting the Code sign error.

The Resource folder contains some HTML files. I am not sure how this folder reference is causing this problem. Any help please?

enter image description here

like image 522
Adithya Avatar asked Mar 26 '15 05:03

Adithya


3 Answers

OK, solved it, This answer helped me.

I renamed the folder. Apparently Xcode does not like "Resources" file to be created manually.

like image 60
Adithya Avatar answered Nov 20 '22 14:11

Adithya


I have had this issue in two different projects, I done alot of the suggested stuff, cleared the DerivedData folder, re-installed pods etc.

In both projects it was complaining about a particular Pod and being unable to codesign it.

What fixed it for me was:

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

The project should now build. For some reason it seems to lose this setting, or not be able to reference it's own plist file.

This worked for me in both projects. Not 100% sure why, but I hope it helps someone else having the same issue.

like image 40
Scriptable Avatar answered Nov 20 '22 16:11

Scriptable


I have the same issue for some hours. But the following helped me.

  1. Delete Derived data
  2. Clean the project

Then running again, worked.

like image 34
Shanmugaraja G Avatar answered Nov 20 '22 15:11

Shanmugaraja G