error: failed to attach to process ID 0

后端 未结 22 1714
遥遥无期
遥遥无期 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 16:58

    My App didn't have a proper BundleID after deleting some xcconfig files.

    0 讨论(0)
  • 2020-12-02 16:58

    Every time I have this issue (that is quite often actualy), I uninstall the app from the simulator (like a user would on the device) and do a clean on XCode. Next build and run works.

    I can also reset the simulator content and settings to make it work but this seems like using a bazooka to kill a fly.

    0 讨论(0)
  • 2020-12-02 16:58

    I had this problem because I had another user on the same machine running the iOS simulator. Logging in as the other user and quitting the simulator (and Xcode) solved it in my case.

    0 讨论(0)
  • 2020-12-02 16:59

    Click on Simulator and reset the simulator by going to the “iOS Simulator” main menu and choose “Reset Content and Settings…

    Back in XCode, choose the menu "Product" > "Edit Scheme". On the left menu panel, click on "Run _Your_Project_Name_.app" > "Run _Your_Project_Name.app". The info display on the right should have the "Debug Process As" radio button picked as "Me (your-user-name)". If not, make sure you do not login as root. On Stackoverflow there are many reports of running as root will have problems

    Next, still in Xcode, go to the menu "Window" > "Organizer". On the top menu, click on "Projects". Go ahead and delete "Derived Data".

    Finally, go to "~/Library/Application Support/iPhone Simulator/6.0/Applications" and delete everything that’s in there

    0 讨论(0)
  • 2020-12-02 16:59

    This also happens if you prepare your file for enterprise distribution and end up saving the resulting .ipa and .plist in the project directory, thus overwriting your project plist. When that happens you'll know because the version information and main window in your project configuration will be blanked. If this happens restore your old plist from source control... and save your product files elsewhere !

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

    Go to IOS Simulator tool bar and click Reset Content and Settings...

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