Xcode will run app on simulator but not on device
With Mountain Lion and the latest version of Xcode (4.4.4F250), none of the suggestions in this thread worked directly (clean, clean project, remove derived data folder, etc). This sequence did. From DhilipSiva:
- Disconnect your device
- Delete the app from your device
- Quit Xcode (Don't just simply close the window, quit it)
- Delete derived data folder
rm -fr ~/Library/Developer/Xcode/DerivedData
(console) - Start Xcode,connect device & run the project
This is a recurring problem that many developers are having with the current version of Xcode. The temporary workaround has been consistently deleting the DerivedData folder.
You can add doing it to a build script or even make it a cron job:
rm -rf ~/Library/Developer/Xcode/DerivedData
Sad, but true.
I solve this by going to Targets-> Info -> Required Device capabilities and delete the option with armv7.
Hope this helps!