iPhone: Failed to launch simulated application: Unknown error

后端 未结 17 696
暗喜
暗喜 2020-12-17 01:30

This is a new iPhone project, only 1 target (different from this question)

On build we get:

Failed to launch simulated application: Unknown error.


        
相关标签:
17条回答
  • 2020-12-17 01:57

    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.

    0 讨论(0)
  • 2020-12-17 01:58

    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.

    0 讨论(0)
  • 2020-12-17 02:00

    I add this issue with a folder named "resources". Rename it, clean every thing and run again.

    0 讨论(0)
  • 2020-12-17 02:01

    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.

    0 讨论(0)
  • 2020-12-17 02:03

    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.

    0 讨论(0)
  • 2020-12-17 02:10

    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.

    0 讨论(0)
提交回复
热议问题