error: failed to attach to process ID 0

后端 未结 22 1717
遥遥无期
遥遥无期 2020-12-02 16:50

I have been reading the forums and so far none of the solutions suggested works for me. I\'m running Xcode 4.4.1 and testing in iPhone 5.1 simulator. The simulator won\'t op

相关标签:
22条回答
  • 2020-12-02 17:19

    Nothing from mentioned above helped me. But as I found that few moments before, I (or some other entity) had somehow removed records from my /etc/hosts file and I got the same error.

    You should check whether you have in your /etc/hosts file the line "127.0.0.1 localhost". As this line is missing, the LLDB debugger is generating issues.

    So just add 127.0.0.1 if you have it missing in your /etc/hosts.

    This helped me!

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

    Embarrassing late-night moment, but just for completeness... when you click "reset content and settings" on the emulator, of course the big blue default button says "DON'T reset", and the little white other button says "reset". If you're not paying attention it can be quite difficult to remember to read the buttons. I can't believe I'm admitting this but hey, happens to us all (right? :))

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

    I've met the same problem

    1.you can delete the App directy under

    ~/Library/Application Support/iPhone Simulator/6.0/Applications

    and

    ~/Library/Developer/Xcode/DerivedData

    2.then you can start Xcode ; in the menubar you can find Project -> Clean

    EDIT: before copy/pasting 1 above change the Simulator Version to what you are using!

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

    Delete the app on the iOS simulator. It works for me.

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