Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

bundle format unrecognized, invalid, or unsuitable

Tags:

xcode

ios

enter image description here

Xcode:8.1

language:Objective-C

I can run the project on my iPhone, but can't run on the simulator.

I tried:

1)deleting all data of the DerivedData folder

2)cleaning the project and restart the project.

3)deleting the resources folder.

but that didn't work!

like image 623
fzh Avatar asked Oct 29 '16 10:10

fzh


3 Answers

For those for whom updating Cocoapods or reverting Xcode to 8.0 is not an option, here is a solution that worked for me:

  1. Right click on Pods in the Project Navigator
  2. Click New File...
  3. Select Property List
  4. Save the file under the name Pods-Info.plist (for example) and leave it empty
  5. Select Pods in the Project Navigator
  6. Select the Pods project, then Build Settings
  7. Search for Info.plist
  8. Set the value of Info.plist File to Pods-Info.plist
like image 60
Loïc Gardiol Avatar answered Nov 08 '22 16:11

Loïc Gardiol


Are you using CocoaPods? Updating CocoaPods itself + then all the pods worked from me.

Note: this is right after the Xcode autoupdate today.

like image 7
Airman00 Avatar answered Nov 08 '22 16:11

Airman00


I had the same problem. I did the following steps, and it sovled. Select Pods in the navigation --> TARGETS --> your FDTakeResources --> Signing(Enable Development Signing) --> Identity(Choose Info.plist File). Then I can run it on my simulator.

like image 7
Zhen Zhang Avatar answered Nov 08 '22 16:11

Zhen Zhang