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 have the same problem. In my case, I just upgraded the iPhone from iOS 6.1 to iOS 7.0.4. I can install the app from Xcode 5 onto the device but it could not be launched. I did a lot the above suggestion in disconnecting, removing app, remove folder and restart Xcode. It still could not work, until I reboot the iPhone. After restarting iPhone, I repeat the above and now it works.