Xcode 7.3 断点调试时崩溃

Xcode 7.3 crashing when debugging with breakpoints

我刚刚安装了 Xcode 7.3 版本。我根本无法调试,因为当我在调试时尝试使用断点时它会崩溃。我尝试删除派生数据,重新启动我的 macbook,重新安装 pods...但不幸的是没有任何效果。有人遇到同样的问题吗?

Process: Xcode [2631] Path: /Applications/Xcode.app/Contents/MacOS/Xcode Identifier: com.apple.dt.Xcode Version: 7.3 (10183.3) Build Info: IDEFrameworks-10183003000000000~2 App Item ID: 497799835 App External ID: 816750016 Code Type: X86-64 (Native) Parent Process: ??? [1] Responsible: Xcode [2631] User ID: 502

Date/Time: 2016-03-22 17:35:16.678 +0000 OS Version: Mac OS X 10.11.4 (15E65) Report Version: 11 Anonymous UUID: 352BCE12-8AEF-A28A-B5F1-214B55269668

Time Awake Since Boot: 2500 seconds

System Integrity Protection: enabled

Crashed Thread: 30 Dispatch queue: DVTInvalidationPreventionQueue

Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000 Exception Note: EXC_CORPSE_NOTIFY

VM Regions Near 0: --> __TEXT 00000001021a4000-00000001021a8000 [ 16K] r-x/rwx SM=COW /Applications/Xcode.app/Contents/MacOS/Xcode

Application Specific Information: ProductBuildVersion: 7D175

Global Trace Buffer (reverse chronological seconds): 14.418349 DTXConnectionServices 0x000000010454fc3a initiating channel x1.c2 capability 642d65677561672d 766f72702d617461 654e2e7372656469 6174536b726f7774 0073636974736974 14.419261 DTXConnectionServices 0x000000010454fc3a initiating channel x1.c1 capability 756265642e65646f 2d65677561672d67 6f72702d61746164 702e737265646976 006f666e69636f72 71.740178 CFNetwork 0x00007fff8d398447 TCP Conn 0x7fe21e691b50 SSL Handshake DONE 72.390183 CFNetwork 0x00007fff8d398323 TCP Conn 0x7fe21e691b50 starting SSL negotiation 72.390333 CFNetwork 0x00007fff8d396ced TCP Conn 0x7fe21e691b50 complete. fd: 50, err: 0 72.390574 CFNetwork 0x00007fff8d4255c7 TCP Conn 0x7fe21e691b50 event 1. err: 0 72.582281 CFNetwork 0x00007fff8d395fbf TCP Conn 0x7fe21e691b50 started 72.628957 CFNetwork 0x00007fff8d359c42 Creating default cookie storage with process/bundle identifier 72.628957 CFNetwork 0x00007fff8d359bda Faulting in CFHTTPCookieStorage singleton 72.628976 CFNetwork 0x00007fff8d359a69 Faulting in NSHTTPCookieStorage singleton 72.650686 CFNetwork 0x00007fff8d457510 NSURLConnection finished with error - code -1100

Crashed Thread: 30 Dispatch queue: DVTInvalidationPreventionQueue

Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000 Exception Note: EXC_CORPSE_NOTIFY

Thread 30 crashed with X86 Thread State (64-bit): rax: 0x0000000000000000 rbx: 0x0000700003900628 rcx: 0x0000700003900338 rdx: 0x00007fe225f6d940 rdi: 0x0000700003900338 rsi: 0x000000000000003e rbp: 0x00007000039005f0 rsp: 0x00007000039003f0 r8: 0x0000000000000000 r9: 0x00007fe215375800 r10: 0xf6c0d10bcec3bd6e r11: 0x00007fe214fa1000 r12: 0x0000700003900628 r13: 0x0000000000000000 r14: 0x0000000000000001 r15: 0x00007fe215375800 rip: 0x000000010e3ae917 rfl: 0x0000000000000246 cr2: 0x0000000000000000

为我解决的是将 Build Setting 中的 "Enable Clang Module Debugging" 设置为 NO。

我在 Build Setting 中将 "Enable Clang Module Debugging" 设置为 NO 仍然 crashing.I 在搜索时找到这个答案,而且似乎有人解决了这个问题。希望对你有帮助,How to Empty Caches and Clean All Targets Xcode 4

我能够通过删除我的 pod 规范中的测试目标并更新我的 pods.

来修复此崩溃

可能只需 运行

pod update

解决这个问题。