Error while launching the application on device

IosXcodeCocoa Touch

Ios Problem Overview


I am getting this error while launching the application on device:

Error launching remote program: No such file or directory (/private/var/mobile/Applications/3E6A33F8-52EE-4A0B-AB9F-A122B7C42045/Test.app/Test)

Ios Solutions


Solution 1 - Ios

First try restarting Xcode. If it doesn't work, then try hard reset of your device. This happens to me when I change the bundle identifier of my app.

Solution 2 - Ios

With XCode 5 beta, an Hard reset of the device was needed to solve the problem.

Solution 3 - Ios

Solution 4 - Ios

If just restarting Xcode and the iPhone does not help, look at your provisioning profiles. Shift-Command-2 brings it up from within Xcode. You can then select the device and then provisioning profiles within that. Deleting your profiles (mine had numerous similar-looking entries created by Xcode) and then restarting Xcode and the iPhone clears the problem.

If your app is a background app you will need to manually delete the app before deploying the new version. For example, say you've an iBeacon aware app, and mark yourself as a background consumer of Bluetooth Low Energy then the OS keeps some record of your app even when it is not running. This record is not properly cleared out when a new version is deployed (iOS 7.0.4). That will cause the reported error, as well as hang the debug and deployment protocol to the handset. The handset will need a restart.

A hack to sidestep the problem is to change the bundle id of your app to something that the phone has not seen. Then it deploys to the handset as a newly seen app avoiding problems from references to the old app.

Solution 5 - Ios

This can also be caused by trying to deploy a target to a device which is not supported e.g. iPad app to iPhone. I got this cryptic message when I forgot to switch it to Universal app.

Solution 6 - Ios

It also happen when your Deployment Target is higher than your Device.

Lower it and it may work.

(thanks to Ian Kershaw, whose made me look around this field)

Solution 7 - Ios

What finally fixed for me was CLEANING(Command + Shift + K) the Xcode project...

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionAbhinavView Question on Stackoverflow
Solution 1 - IosAurum AquilaView Answer on Stackoverflow
Solution 2 - IosAmnysiaView Answer on Stackoverflow
Solution 3 - IosGalView Answer on Stackoverflow
Solution 4 - IosFaisal MemonView Answer on Stackoverflow
Solution 5 - IosIan KershawView Answer on Stackoverflow
Solution 6 - IosMartinView Answer on Stackoverflow
Solution 7 - IosAhtazazView Answer on Stackoverflow