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

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

    try to do next steps:

    • Go to Product/Scheme/Edit Scheme then select Run section.
    • Select Info Tan and set Debugger None.
    • Run project. It must be working (without debugger)
    • Go back to Edit Scheme and selecet debugger LLDB
    • Run project. It is working.

    Maybe additionally you need to delete derived data and do Product/Clean

提交回复
热议问题