Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"Installation Failed: Invalid Argument" after moving to Xcode 7

After agreeing to the "Upgrade to recommended settings" dialog in Xcode 7, my app build but no longer runs on the simulator. The simulator launches properly, but just sits on the home screen. Meanwhile, Xcode displays the error:

Installation Failed
Invalid Argument

like image 441
jemmons Avatar asked Dec 14 '22 12:12

jemmons


1 Answers

This happens because "Upgrade to recommended settings" will change the info.plist's CFBundleIdentifier to point to $(PRODUCT_BUNDLE_IDENTIFIER) instead of the old $(BUNDLE_IDENTIFIER).

Apple says in the Xcode 7 release notes that PRODUCT_BUNDLE_IDENTIFIER is now "the recommended place to set the Bundle Identifier for a target." So if you're using BUNDLE_IDENTIFIER anyplace else in your project, you have to change it to PRODUCT_BUNDLE_IDENTIFIER to keep things in sync.

like image 113
jemmons Avatar answered Dec 26 '22 10:12

jemmons