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 encountered this problem when I tried to run my app on a device with an iOS version below the deployment target set in Target->Summary->Deployment Target. The deployment target was set to 6.0 and my device had iOS 5.1 . Changing the Deployment Target to 5.1 fixed it for me.
Clean your application folder and rebuild it
Cleaning, quiting XCode, relaunching XCode and recompiling helped me with an indentical issue.
I too faced this problem. I tried with options which were listed above.
But in my case problem was the device having iOS version 6.0 and the build target was set to 6.1. Version of simulator is iOS 6.1 so it is running on simulator but on phone it failed to install.
After changing the build target version it executed and installed on device
May this will help...
--Avinash
The only way I was able to fix this was to hard-boot my iPhone (hold down power and menu button until it powers off) and restart Xcode.
For me restarting of Xcode, cleaning DerivedData and restaring device wasn't enough in most cases, until I had figured out that iTunes was also running, and after quitting iTunes everything worked fine!
So my steps now are simple:
It works without cleaning and device restarting.