我用Xcode8.3打开就项目,导致Xcode崩溃。而且是一直崩溃!一下是崩溃日志!

发布于 2022-09-05 03:24:24 字数 3314 浏览 20 评论 0

如题!

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:

我试过没有解决问题的方法有:

  1. 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

  1. 删除xcuserdata文件夹。

有没有好的解决方法!在线等!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

猥︴琐丶欲为 2022-09-12 03:24:25

IDEDiagnosticActivityLogMessage里的298行看看有没有问题

你是年少的欢喜 2022-09-12 03:24:25

图片描述

IDEDiagnosticFixItItem 在调用方法initWithFixItString:replacementLocation:创建实例的时候,参数fixItStringnil,所以Crash了

定格我的天空 2022-09-12 03:24:25

项目所在路径里面包含中文字符可能会导致Xcode崩溃,虽然不清楚其他项目为什么不会崩,但是将路径中包含的中文字符都改成英文之后就好了,你可以试试是否有效。

哎呦我呸! 2022-09-12 03:24:24

最简单的方法就是重新下载一个最新版的,注意要和系统对应的版本。我的系统10.12.5 Xcocd8.3.2一直在用,没有出现什么异常崩溃。

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文