RunLoop RunLoop - 1 year ago 126
iOS Question

Project wont run on simulator in xcode 8

After upgrading to xcode8, my project will no longer run on the simulator (runs on a device)


Assets.bundle: Is a directory

Command /usr/bin/codesign failed with exit code 1

I have deleted the entire deriveddata folder and cleaned the project several times with no success. Any ideas how to fix please?

Answer Source

If you are using CocoaPods (especially an older version), you'll notice that all the resource bundle targets in the pods project file don't have an info.plist. Set them all using CocoaPods generic Info.plist and it'll run. This however is not a permanent solution. It will reset on next pod install

EDIT: If you don't happen to have a generic plist file in your project already create a new file Info.plist in Pods Target Support Files/Pods-<App Name>/ and paste this

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "">
<plist version="1.0">

EDIT 2: Fixed the values above. Apple won't accept it when uploading to App Store the way it previously was. It shouldn't have CFBundleExecutable and the CFBundlePackageType should be set to BNDL

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download