显然这个断点的崩溃只会影响模拟器,物理设备设置并在断点处停止,而不会出现问题.奇怪的!
这绝对是疯狂!有人得到这个吗
我试过的事情
>删除/Application/Xcode.app/& 〜/资源库/开发/ *
>清理项目
重启笔记本电脑
>在物理设备上执行的断点(<< ======这个工作!!!)
屠宰一只鸡,遍布全血
堆栈跟踪的头:
Process: Xcode [7904] Path: /Applications/Xcode.app/Contents/MacOS/Xcode Identifier: com.apple.dt.Xcode Version: 6.1 (6604) Build Info: IDEFrameworks-6604000000000000~2 App Item ID: 497799835 App External ID: 752282650 Code Type: X86-64 (Native) Parent Process: launchd [185] Responsible: Xcode [7904] User ID: 501 Date/Time: 2014-11-25 12:32:49.348 -0800 OS Version: Mac OS X 10.9.5 (13F34) Report Version: 11 Anonymous UUID: E22980F9-B80B-F985-200A-FE471C623C56 Crashed Thread: 23 <DBGLLDBSessionThread (pid=7957)> Exception Type: EXC_BAD_ACCESS (SIGBUS) Exception Codes: KERN_PROTECTION_FAILURE at 0x00000001409bdfd0 VM Regions Near 0x1409bdfd0: Stack 000000014093b000-00000001409bd000 [ 520K] rw-/rwx SM=COW thread 22 --> STACK GUARD 00000001409bd000-00000001409be000 [ 4K] ---/rwx SM=NUL stack guard for thread 23 Stack 00000001409be000-0000000140a40000 [ 520K] rw-/rwx SM=COW thread 23 Application Specific Information: ProductBuildVersion: 6A1052d
…
Thread 23 Crashed:: <DBGLLDBSessionThread (pid=7957)> 0 libsystem_pthread.dylib 0x00007fff90eb82cf __mtx_droplock + 17 1 libsystem_pthread.dylib 0x00007fff90eb88f3 pthread_mutex_unlock + 60 2 com.apple.LLDB.framework 0x000000011808f8be lldb_private::Mutex::Locker::~Locker() + 22 3 com.apple.LLDB.framework 0x00000001180ed55f GDBRemoteCommunication::CheckForPacket(unsigned char const*,unsigned long,StringExtractorGDBRemote&) + 2423 4 com.apple.LLDB.framework 0x00000001180ec99e GDBRemoteCommunication::WaitForPacketWithTimeoutMicroSecondsNoLock(StringExtractorGDBRemote&,unsigned int) + 88 5 com.apple.LLDB.framework 0x00000001181eeb1b GDBRemoteCommunicationClient::SendPacketAndWaitForResponse(char const*,StringExtractorGDBRemote&,bool) + 91 6 com.apple.LLDB.framework 0x00000001180f7574 ProcessGDBRemote::DoReadMemory(unsigned long long,void*,lldb_private::Error&) + 216 7 com.apple.LLDB.framework 0x00000001181a452a lldb_private::Process::ReadMemoryFromInferior(unsigned long long,lldb_private::Error&) + 94 8 com.apple.LLDB.framework 0x0000000118171889 lldb_private::ProcessStructReader::ProcessStructReader(lldb_private::Process*,unsigned long long,lldb_private::ClangASTType) + 561 9 com.apple.LLDB.framework 0x0000000118169082 lldb_private::SwiftLanguageRuntime::ClassMetadata::ClassMetadata(lldb_private::SwiftLanguageRuntime&,unsigned long long) + 354 10 com.apple.LLDB.framework 0x000000011816625d lldb_private::SwiftLanguageRuntime::GetMetadataForLocation(unsigned long long) + 531 11 com.apple.LLDB.framework 0x00000001181690d1 lldb_private::SwiftLanguageRuntime::ClassMetadata::ClassMetadata(lldb_private::SwiftLanguageRuntime&,unsigned long long) + 433 12 com.apple.LLDB.framework 0x000000011816625d lldb_private::SwiftLanguageRuntime::GetMetadataForLocation(unsigned long long) + 531 13 com.apple.LLDB.framework 0x00000001181690d1 lldb_private::SwiftLanguageRuntime::ClassMetadata::ClassMetadata(lldb_private::SwiftLanguageRuntime&,unsigned long long) + 433 14 com.apple.LLDB.framework 0x000000011816625d lldb_private::SwiftLanguageRuntime::GetMetadataForLocation(unsigned long long) + 531 15 com.apple.LLDB.framework 0x00000001181690d1 lldb_private::SwiftLanguageRuntime::ClassMetadata::ClassMetadata(lldb_private::SwiftLanguageRuntime&,unsigned long long) + 433 16 com.apple.LLDB.framework 0x000000011816625d lldb_private::SwiftLanguageRuntime::GetMetadataForLocation(unsigned long long) + 531 17 com.apple.LLDB.framework 0x00000001181690d1 lldb_private::SwiftLanguageRuntime::ClassMetadata::ClassMetadata(lldb_private::SwiftLanguageRuntime&,unsigned long long) + 433 18 com.apple.LLDB.framework 0x000000011816625d lldb_private::SwiftLanguageRuntime::GetMetadataForLocation(unsigned long long) + 531
…
解决方法
请注意:做所有这些步骤(按顺序)可以是关键的…我意识到,其中一些乍一看似乎是过分的,或者他们不应该重要,但我的经验表明,每一步都在获得XCode恢复正常工作.因此,我不建议您跳过任何步骤或更改订单.
就这样说,如果你发现需要调整下面的步骤,请发表评论… XCode不断变化,这些步骤也可能需要随着时间的推移而改变.
XCode崩溃后:
1)如果模拟器仍然运行,请确保在关闭之前选择IOS Simulator->重置内容和设置.
2)关闭模拟器(CMD-Q)
3)窗口 – >主办单位 – >删除派生数据
4)如果在任何设备上进行调试,请从设备中删除应用程序,然后完全REBOOT设备.
5)启动XCode
6)删除所有断点
7)产品 – > (按住Alt /选项键)清洁构建文件夹
8)产品 – >清洁
9)通过XCode再次关闭XCode>退出XCode(注意:必须是GRACEFUL退出,所以XCode可以正常完成关闭/清除周期)
10)重启Mac
11)启动Xcode
12)如果在模拟器中运行,选择不同的设备进行模拟,而不是崩溃.
13)做一个测试运行你的应用程序(没有断点)
14)如果一切顺利,开始添加断点(所有异常始终是一个好的起点).
HAIL MARY CLAUSE(a.k.a.“Corbomite机动”):如果上述所有操作都不起作用,则再次执行上述所有步骤,但在步骤9和10之间插入以下步骤:9A)删除XCode应用程序并重新安装XCode.