Xcode Could Not Launch App No Such File Or Directory Error

Developing in Xcode can give a lot of different errors. Here’s yet another one:

Could not launch app – No such file or directory. Then a path to Users/App/Library/Developer/Xcode/DerivedData/etc…

Running into this problem on multiple occasions there have been two solutions depending on the situation. First issue is right during publishing and the scheme is set to release and you’ll back to debugging. Go to Product -> Edit Scheme… -> Info. Now set the “Build Configuration” to Debug instead of Release.

The other times occurs randomly, haven’t found a pattern.

Disconnect the device. Delete the app on the device. Rightclick Xcode and press Quit xcode (not enought just closing it). Delete DerivedData folder (Users/App/Library/Developer/Xcode/DerivedData/etc. Now start Xcode, connect device and run the project.


Posted in Mac Tagged with: ,