If you are a new iPhone developer and you are trying to test your app on your device, you may sometimes get the error "failed to download app" from XCode. The odd thing is the app appears on the device and is runnable, but XCode failed at some point in the process of trying to launch the app was it was installed on the device. There is a simple solution:
Quit and restart XCode. This should clean it up.