When i try to launch my application from Xcode to the device, i get this error:
error: failed to launch \'/Users/Luca/Library/Developer/Xcode/DerivedData/myapp-b
I also ran into this problem compiling a Cocos2D project on an iPhone 4. That was after having followed all the steps suggested by Jeff Grimes but to no avail. Everything had been working fine, so I was a bit stumped.
The fail was a caused by change of the UIRequiredDeviceCapabilities
for accelerometer
from YES
to NO
(as the app isn't using accelerometer I decided to just drop the requirement). I changed it back and everything is fine - compiling again.
Incidentally - I thought that changing the value of the key to NO
meant that the accelerometer would just not be required. This is wrong - this breaks the compiler as it checks to make sure the device has NOT got an accelerometer, which of course returns true for most devices. So you just need to delete that row entirely if you don't need accelerometer support.