Xcode error: failed to launch

I get this error

error: failed to launch ‘/Users/grantmorgan/Library/Developer/Xcode/DerivedData/Unity-iPhone-gkjdgyisywxtcdenpgydzflhepyh/Build/Products/gakkoii.app/gakkoii’ – No such file or directory (/Users/grantmorgan/Library/Developer/Xcode/DerivedData/Unity-iPhone-gkjdgyisywxtcdenpgydzflhepyh/Build/Products/gakkoii.app/gakkoii)

It stills installs the program on the iPhone/iPad and runs fine afterwards, but I would like it to run while attached to Xcode so I can view the console see why some code is not working.

I have tried checking and unchecking symlink unity libraries and development build. also I have set to no stripping and fast no exceptions [edit I had writen “slow and safe” but that was not the setting, setting it slow and safe fixes things ] .

Other builds have worked in past. Any ideas why this happens sometimes?

Cheers,
Grant

as per http://stackoverflow.com/questions/10178667/issue-while-launching-project-in-device, restarting Xcode seems to do the trick.

I got this error too.
My XCode version is 4.3.2 with Mac OSX 10.7.3

Same here, but only if I am trying to run it on the “new iPad” (aka iPad3). Is there any solution for this?

As per http://stackoverflow.com/questions/10178667/issue-while-launching-project-in-device, restarting XCode seems to make the trick…