This is a new iPhone project, only 1 target (different from this question)
On build we get:
Failed to launch simulated application: Unknown error.
Another thing to try if you are desperate is to change the 'Product Name' setting. This worked for me once when everything else didn't.
Thanks Guys.
I had the Product name different than in the info plist. A restart once I fixed that made it all go away.
ps, stackoverflow has been a real help to beginners like me. Thanks from downunder.
I add this issue with a folder named "resources". Rename it, clean every thing and run again.
I had this problem recently and the fix was ridiculously simple. I remembered that I had been editing the target settings and under the "Properties" tab in the "Executable" field there was a space after the value which was ${EXECUTABLE_NAME}. Yes, a single space. It was impossible to see unless you highlight the field. I figured this out because I had edited that field seeing if I could add a command line option that way. I guess when I cut the additional option back out, I missed a space. So while this is the only possible cause of this problem, it's worth checking out.
Changing the product name worked for me. I tried several different alternatives and all of them worked fine. It was the "magic product name" I used at the onset that failed every time I went back to it. YMMV.
I can confirm that a naming conflict was the source of our problem. We had a filesystem folder named resources
inside the Xcode group named Resources
. Sometimes we would get the error and a system would lock up and sometimes it would not. Changing the folder to the name assets
resolved our problem. After reading some of the above comments - it appears that Xcode group names can clash with directory/folder names.