我用Xcode8.3打开就项目,导致Xcode崩溃。而且是一直崩溃!一下是崩溃日志!
如题!
ASSERTION FAILURE in /Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-12169/IDEFoundation/Diagnostic/IDEDiagnosticActivityLogMessage.m:298
Date/Time: 2017-05-24 10:55:13.864 +0800
OS Version: Mac OS X 10.12.5 (16F73)
Report Version: 12
Anonymous UUID: E6D015C9-5D5B-8165-3DED-5FA9DEE16B80
Sleep/Wake UUID: D9402094-DE3A-4B1E-9D9E-4DC22BEB3839
Time Awake Since Boot: 93000 seconds
System Integrity Protection: enabled
Crashed Thread: 20 Dispatch queue: shared-compile-command-queue :: NSOperation 0x7fd3ef034ae0 (QOS: DEFAULT)
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Application Specific Information:
ProductBuildVersion: 8E162
ASSERTION FAILURE in /Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-12169/IDEFoundation/Diagnostic/IDEDiagnosticActivityLogMessage.m:298
Details: (fixItString) should not be nil.
Object: <IDEDiagnosticFixItItem: 0x7fd3eebb6150>
Method: -initWithFixItString:replacementLocation:
Thread: <NSThread: 0x7fd3ebf12fd0>{number = 34, name = (null)}
Hints:
Backtrace:
0 -[IDEAssertionHandler handleFailureInMethod:object:fileName:lineNumber:assertionSignature:messageFormat:arguments:] (in IDEKit)
1 _DVTAssertionHandler (in DVTFoundation)
2 _DVTAssertionFailureHandler (in DVTFoundation)
3 -[IDEDiagnosticFixItItem initWithFixItString:replacementLocation:] (in IDEFoundation)
4 -[IDEClangDiagnosticActivityLogMessage initWithDiagnostic:timestamp:pathMap:workingDirectory:documentURL:] (in IDEFoundation)
5 -[IDEClangDiagnosticActivityLogMessage initWithDiagnostic:timestamp:pathMap:workingDirectory:] (in IDEFoundation)
6 _XCMessageForDiagnostic (in DevToolsCore)
7 XCGenerateDiagnosticsFromFile (in DevToolsCore)
8 -[XCClangResultsPostprocessor generateDiagnosticsFromFile:logSectionRecorder:] (in DevToolsCore)
9 -[XCClangResultsPostprocessor postprocessResultsForCommandInvocation:] (in DevToolsCore)
10 -[XCWorkQueueCommandSubprocessInvocation handleEndOfOutput] (in DevToolsCore)
11 -[XCWorkQueueCommandLocalSubprocessInvocation handleEndOfOutput] (in DevToolsCore)
12 -[XCWorkQueueCommandLocalSubprocessInvocation handleOutputFileDescriptorActivity] (in DevToolsCore)
13 -[Xcode3BuildTask main] (in DevToolsCore)
14 -[__NSOperationInternal _start:] (in Foundation)
15 __NSOQSchedule_f (in Foundation)
16 _dispatch_client_callout (in libdispatch.dylib)
17 _dispatch_queue_serial_drain (in libdispatch.dylib)
18 _dispatch_queue_invoke (in libdispatch.dylib)
19 _dispatch_root_queue_drain (in libdispatch.dylib)
20 _dispatch_worker_thread3 (in libdispatch.dylib)
21 _pthread_wqthread (in libsystem_pthread.dylib)
22 start_wqthread (in libsystem_pthread.dylib)
abort() called
Application Specific Signatures:
我试过没有解决问题的方法有:
Quit Xcode
Delete xcuserdata folder (Navigate to your project in Finder, right click on YourProject.xcworkspace, choose Show
package contents, then delete xcuserdata folder).
Delete DerivedData
删除xcuserdata文件夹。
有没有好的解决方法!在线等!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
IDEDiagnosticActivityLogMessage里的298行看看有没有问题
IDEDiagnosticFixItItem 在调用方法initWithFixItString:replacementLocation:创建实例的时候,参数fixItString为nil,所以Crash了
项目所在路径里面包含中文字符可能会导致Xcode崩溃,虽然不清楚其他项目为什么不会崩,但是将路径中包含的中文字符都改成英文之后就好了,你可以试试是否有效。
最简单的方法就是重新下载一个最新版的,注意要和系统对应的版本。我的系统10.12.5 Xcocd8.3.2一直在用,没有出现什么异常崩溃。