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

后端 未结 20 1301
一向
一向 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:31

    What seemed to work for me was build & run my code so that it opened the Simulator, then hold down on the Simulator Icon in the Dock and select Options -> Keep In Dock

    After this I just closed the simulator and launched it from the dock and deleted the app from the home screen on the simulator.

    Build & Run the app from XCode and everything seemed to be OK again.

提交回复
热议问题