Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode Error launching remote program

I've seen this all over the place on stack overflow, but everyone else's solution doesn't work for me. Help! Please!

I'm trying to test my app on my iPhone, it's run perfectly fine up until I updated Xcode and the iOS (I've also been on v4 though). I can't get it to sync the app over at all. I've tried dumping this file/folder, dumping caches, quitting relaunching Xcode, Rebooting the Computer, Restarting the phone, everything I can think of to no avail. Any Ideas?

Error launching remote program: No such file or directory
(/Users/andrew/Library/Developer/Xcode/DerivedData/BTC_Exchange-drzeigaqfnjtatglpppiwxmscsoj/Build/Products/Debug-iphoneos/BTC Exchange.app/BTC Exchange).

And the file does exist, there are no permissions issues from what I can tell and I ran a whole disk permissions check too.

like image 821
Andrew Avatar asked Jul 18 '11 04:07

Andrew


5 Answers

Go here: ~/Library/Developer/Xcode/DerivedData and clear out all the old builds. It'll work again without having to do the project renaming etc.

like image 115
Dave Wood Avatar answered Nov 11 '22 16:11

Dave Wood


Try to clear ~/Library/Developer/Xcode/DerivedData and RESTART Xcode.

like image 41
Flanker Avatar answered Nov 11 '22 16:11

Flanker


I was having the exact same issue as you. I tried everything you did, and just like you none of those solutions worked for me. Just now I was finally able to get it to work (whew). Here is how I did it:

  1. Rename your project to anything different. Do this in Xcode 4 by slowly double clicking on the project name in the Project Navigator.

  2. Go to your project info.plist. Change the bundle identifier to match the new project name. Also change the bundle name just to be safe...

  3. Do a command-shift-k to clean the project. Then run!

That worked for me. Good luck.

like image 38
Matt.M Avatar answered Nov 11 '22 18:11

Matt.M


Go : ~/Library/Developer/Xcode/DerivedData

Clear user Data

Clean the Project

Quit the xcode(make sure you quite. Look at the picture)

   ![Quit xCode][1]

enter image description here

like image 4
MadNik Avatar answered Nov 11 '22 16:11

MadNik


For me, doing Product -> Clean then restarting XCode worked.

like image 1
Ryan Bavetta Avatar answered Nov 11 '22 18:11

Ryan Bavetta