XCode 6.1 and 6.1.1 Crashes on Debugger Breakpoint (Simulator)

最后都变了- 提交于 2019-11-30 05:05:31

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!