Francesco Francesco - 27 days ago 49
Objective-C Question

Xcode 8 build fail only for simulator

from yesterday I'm unable to build and run my project on iOS 10 simulator with Xcode 8.1 The strange thing is that build and run work fine for real devices. The issue is:


.../Xcode/DerivedData/Tripla_Doppia-fllujkpnletlmwcswbkopyphtkqd/Build/Products/Debug-iphonesimulator/Appirater.bundle: bundle format unrecognized, invalid, or unsuitable
Command /usr/bin/codesign failed with exit code 1


I tried to clean project and clean Derived Data's folder, but nothing is changed. I'm using CocoaPods to manage libraries, included the Appirater pod. Build and run worked fine until last week. Any suggestion?

This is link to screenshot:

enter image description here

Answer

This issue can be caused because of CocoaPods as Francesco said.

CocoaPods and any pods is reference a resource path which does not exist can cause the problem.

Like for pods reference to a resource path which does not exist,

s.resource_bundles = {  
    'aPod' => ['Pod/Assets/*.png']  
}

Thread here seems to help.

Comments