使用断点调试时 Xcode 7.3 崩溃

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/36161040/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 08:38:56  来源:igfitidea点击:

Xcode 7.3 crashing when debugging with breakpoints

xcodexcode7xcode8

提问by Fran Martin

I just install the Xcode 7.3 version. I can't debug at all because it's crashing when I try to use a breakpoint while I'm debugging. I tried removing Derive Data, Reboot my macbook, reinstall pods... but unfortunately nothing is working. Is someone having the same issue?

我只安装了 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

进程:Xcode [2631] 路径:/Applications/Xcode.app/Contents/MacOS/Xcode 标识符:com.apple.dt.Xcode 版本:7.3 (10183.3) 构建信息:IDEFrameworks-10183003000000000~2 App 项目 ID:497 App79983 ID:816750016 代码类型:X86-64(本机)父进程:??? [1] 负责人:Xcode [2631] 用户 ID:502

日期/时间:2016-03-22 17:35:16.678 +0000 操作系统版本:Mac OS X 10.11.4 (15E65) 报告版本:11 匿名 UUID:352BCE12-8AEF-A28A-B5F1-2696685

启动后唤醒时间:2500 秒

系统完整性保护:已启用

崩溃线程:30 调度队列:DVTInvalidationPreventionQueue

异常类型:EXC_BAD_ACCESS (SIGSEGV) 异常代码:KERN_INVALID_ADDRESS at 0x0000000000000000 异常注意:EXC_CORPSE_NOTIFY

接近 0 的 VM 区域:--> __TEXT 00000001021a4000-00000001021a8000 [ 16K] rx/rwx SM=COW /Applications/Xcode.app/Contents/MacOS/Xcode

应用程序特定信息:ProductBuildVersion:7D175

全球跟踪缓冲区(反向时间秒):14.418349 DTXConnectionServices 0x000000010454fc3a发起信道x1.c2能力642d65677561672d 766f72702d617461 654e2e7372656469 6174536b726f7774 0073636974736974 14.419261 DTXConnectionServices 0x000000010454fc3a发起信道x1.c1能力756265642e65646f 2d65677561672d67 6f72702d61746164 702e737265646976 006f666e69636f72 71.740178 CFNetwork的0x00007fff8d398447 TCP康恩0x7fe21e691b50 SSL握手DONE 72.390183 CFNetwork的0x00007fff8d398323 TCP Conn 0x7fe21e691b50 开始 SSL 协商 72.390333 CFNetwork 0x00007fff8d396ced TCP Conn 0x7fe21e691b50 完成。fd:50,错误:0 72.390574 CFNetwork 0x00007fff8d4255c7 TCP Conn 0x7fe21e691b50 事件 1. 错误:0 72。

崩溃线程:30 调度队列:DVTInvalidationPreventionQueue

异常类型:EXC_BAD_ACCESS (SIGSEGV) 异常代码:KERN_INVALID_ADDRESS at 0x0000000000000000 异常注意:EXC_CORPSE_NOTIFY

螺纹30与X86线程状态(64位)崩溃: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

回答by Oleg Sherman

What solved it for me is setting the "Enable Clang Module Debugging" in Build Setting to NO.

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

回答by shujucn

I set the "Enable Clang Module Debugging" in Build Setting to NO is still crashing.I find this answer while searching, and someone seems fixed this problem. Hope it helps, How to Empty Caches and Clean All Targets Xcode 4

我将 Build Setting 中的“Enable Clang Module Debugging”设置为 NO 仍然崩溃。我在搜索时找到了这个答案,似乎有人解决了这个问题。希望它有所帮助,如何清空缓存和清理所有目标 Xcode 4

回答by Kevin

I was able to fix this crash by removing my test target in my pod spec and updating my pods.

我能够通过在我的 pod 规范中删除我的测试目标并更新我的 pod 来修复这个崩溃。

It may be enough to simply run

简单地运行可能就足够了

pod update

to fix this.

来解决这个问题。