Xcode 6.1 and 6.1.1 Crashes on Debugger Breakpoint (Simulator)

前端 未结 1 1733
逝去的感伤
逝去的感伤 2020-12-29 10:41

I, like many others, have had issues with Xcode 6+ crashing. I get the SourceKit crashes as well as full application crashes. On a whim I figured I\'d try 6.1.1 (developer

相关标签:
1条回答
  • 2020-12-29 11:05

    There have been many solutions proposed over the years for this kind of bizarre Xcode behavior, so I have included all those steps as well; however, I have added a few of my own that (when done together and in order) have never failed to resolve every weird Xcode issue that I have come across.

    PLEASE NOTE: Doing ALL of these steps (in order) can be CRITICAL. I realize that some of them at first glance seem like overkill or like they should not matter, but my experience has shown that each step plays a part in getting Xcode back into proper working order. Therefore, I do NOT recommend skipping any steps or changing their order.

    With that said, if you discover the need to tweak the steps below, please do post a comment. Xcode does change constantly so these steps may also need change as well over time.

    After Xcode crashes:

    1. If simulator is still running make sure to select IOS Simulator->Reset Content And Settings before closing it.

    2. Close Simulator (CMD-Q)

    3. Window -> Organizer -> Delete derived data

    4. If debugging on ANY devices, delete the app from the device and REBOOT the device completely.

    5. Launch Xcode

    6. Remove All breakpoints

    7. Product -> (hold down Alt/option key) Clean Build Folder

    8. Product -> Clean

    9. Close Xcode again via Xcode->Quit Xcode (NOTE: Must be a GRACEFUL Exit, so Xcode can properly do a complete shutdown/cleanup cycle)

    10. Reboot your Mac

    11. Launch Xcode

    12. If running in simulator, pick a different device to simulate than when it crashed.

    13. Do a test run of your app (with no breakpoints)

    14. If all goes well, start adding a breakpoints (All Exceptions is always a good starting point).

    HAIL MARY CLAUSE (a.k.a. "The Corbomite Maneuver"): If doing all the above did not work then re-perform all the above steps again, but insert the following step between steps 9 and 10: 9A) Delete Xcode app and re-install Xcode.

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