Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error launching remote program: No such file or directory

Anyone have an idea about this

Error launching remote program: No such file or directory (/Users/muself/Library/Developer/Xcode/DerivedData/myproject-hlelojuljidnnagbdqzliazpdgmn/Build/Products/Debug-iphoneos/myproject.app/myproject).

The project was working fine with the previous Xcode versions. I have just updated the Xcode to Version 4.3.2 (4E2002), & the error start coming.

I have search on the web, and tried a lot of the options like

Quit Xcode, clear the Derived Data folder, restart the Xcode. Rename the project, Reset the device,etc I also tried this on another machine but did not work, the same problem occurs.

But one thing i have some other projects as well and they are working fine.

Thanks for at least reading this.

like image 622
Amjad Khan Avatar asked Apr 18 '12 07:04

Amjad Khan


People also ask

How do I fix No such file or directory?

To solve No Such File Or Directory Error in Python, ensure that the file exists in your provided path. To check all the files in the directory, use the os. listdir() method.

Why do I keep getting no such file or directory?

log No such file or directory” the problem is most likely on the client side. In most cases, this simply indicates that the file or folder specified was a top-level item selected in the backup schedule and it did not exist at the time the backup ran.

Why does Linux keep saying no such file or directory?

Missing libraries on your system can cause you to get the bash: No such file or directory error. Examine the file with the file command. If the file is a 32-bit executable, you need some libraries to execute it on a 64-bit architecture OS.

How fix bash No such file or directory?

To fix it, try the dos2unix program if you have it, or see Converting DOS Files to Linux Format. Note that if you use dos2unix it will probably create a new file and delete the old one, which will change the permissions and might also change the owner or group and affect hard links.


4 Answers

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. This solution,I found of the above problem its working fine for me.:)

like image 52
Himanshu Agnihotri Avatar answered Oct 04 '22 06:10

Himanshu Agnihotri


have you tried to "validate settings" (button on the bottom of project settings)? Do you use some static libs in your app? – Vov4yk

like image 21
haawa Avatar answered Oct 04 '22 06:10

haawa


Check your deployment target. I am running Xcode 4.5, and it gave me that cryptic message, while the reason was that my iPad is running version 5.1.1, and my app was set with deployment target of 6.0.

like image 37
igorsales Avatar answered Oct 04 '22 07:10

igorsales


I also get same problem. This below solution works for me. Thats really annoying. This error happens in a number of different situations. Sometime restarting the Xcode, fixes the problem. If not, follow these steps:

  1. Disconnect your device.

  2. Delete the app from your device.

  3. Quit xcode (Don't just simply close the window, quit it)

  4. Delete derived data folder (~/Library/Developer/Xcode/DerivedData/APPNAME -gbrvhlvwmpiobxdujegtghggrffp - or something like that)

  5. Now start Xcode, connect device and run the project. It should work fine.

Source: http://dhilipsiva.com/2012/07/24/xcode-could-not-launch-app-no-such-file-or-directory-error.html

like image 33
Naga Harish M Avatar answered Oct 04 '22 07:10

Naga Harish M