Xcode compiles my App, but can't run it in the simulator

后端 未结 20 1342
一向
一向 2020-12-05 01:59

when i compile my app, Xcode just says \"Attaching to Projectname...\" and gets stuck there. The debugger just prints this out:

error: failed to attac

20条回答
  •  北荒
    北荒 (楼主)
    2020-12-05 02:23

    There seems to be quite a lot of things that can cause this error, but for me it turned out to be that I was missing the key CFBundleIdentifier from my plist.

    Added it back, and the simulator started normally.

提交回复
热议问题