公司电脑 Xcode 跑是正常的。从码云上拉取代码后在家里的电脑上跑, xcode 直接崩溃报错了,开始以为是版本问题昨晚升级到最新的 11.2 后还是如此。V 友们帮忙看看是什么原因,在此先谢谢了!内容是 xcode 的崩溃信息

2019-11-03 11:08:34 +08:00
 RyanGo
Process: Xcode [2316]
Path: /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 11.2 (15526)
Build Info: IDEFrameworks-15526000000000000~2 (11B52)
App Item ID: 497799835
App External ID: 833322482
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Xcode [2316]
User ID: 501

Date/Time: 2019-11-03 11:01:45.097 +0800
OS Version: Mac OS X 10.15.1 (19B88)
Report Version: 12
Anonymous UUID: 7C6E0296-D020-9094-AEEE-5B345A11709C


Time Awake Since Boot: 5600 seconds

System Integrity Protection: enabled

Crashed Thread: 0 Dispatch queue: com.apple.main-thread

Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY

Application Specific Information:
ProductBuildVersion: 11B52
ASSERTION FAILURE in /Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-15526/IDEKit/Workspace/IDEWorkspaceDocument.m:3429
Details: selection failed. window:<IDEWorkspaceWindow: 0x7ffb70986f70> currentlySelectedTabbedWindow:<IDEWorkspaceWindow: 0x7ffb703959b0>
Object: <IDEWorkspaceDocument: 0x7ffb6bd9ef60>
Method: -_restoreSelectedTabsByIdentifierFromStateSaving:
Thread: <NSThread: 0x7ffb6bc16e20>{number = 1, name = main}
Hints:

Backtrace:
0 -[IDEAssertionHandler handleFailureInMethod:object:fileName:lineNumber:assertionSignature:messageFormat:arguments:] (in IDEKit)
1 _DVTAssertionHandler (in DVTFoundation)
2 _DVTAssertionFailureHandler (in DVTFoundation)
3 -[IDEWorkspaceDocument _restoreSelectedTabsByIdentifierFromStateSaving:] (in IDEKit)
4 -[IDEWorkspaceDocument revertStateWithDictionary:] (in IDEKit)
5 -[DVTStateToken _pullStateFromDictionary:] (in DVTFoundation)
6 -[DVTStateToken pullStateFromRepository] (in DVTFoundation)
7 -[IDEWorkspaceDocument _readFromURL:ofType:simpleFilesFocused:error:] (in IDEKit)
8 -[IDEWorkspaceDocument readFromURL:ofType:error:] (in IDEKit)
9 -[NSDocument _initWithContentsOfURL:ofType:error:] (in AppKit)
10 -[NSDocument initWithContentsOfURL:ofType:error:] (in AppKit)
11 -[IDEDocumentController makeDocumentWithContentsOfURL:ofType:error:] (in IDEKit)
12 __97-[NSDocumentController makeDocumentWithContentsOfURL:alternateContents:ofType:completionHandler:]_block_invoke (in AppKit)
13 -[NSDocumentController makeDocumentWithContentsOfURL:alternateContents:ofType:completionHandler:] (in AppKit)
14 __80-[NSDocumentController openDocumentWithContentsOfURL:display:completionHandler:]_block_invoke (in AppKit)
15 __145-[IDEDocumentController _coordinateReadingAndGetAlternateContentsForOpeningDocumentAtURL:resolvingSymlinks:thenContinueOnMainThreadWithAccessor:]_block_invoke (in IDEKit)
16 __144-[NSDocumentController _coordinateReadingAndGetAlternateContentsForOpeningDocumentAtURL:resolvingSymlinks:thenContinueOnMainThreadWithAccessor:]_block_invoke_4 (in AppKit)
17 __144-[NSDocumentController _coordinateReadingAndGetAlternateContentsForOpeningDocumentAtURL:resolvingSymlinks:thenContinueOnMainThreadWithAccessor:]_block_invoke_2.872 (in AppKit)
18 __144-[NSDocumentController _coordinateReadingAndGetAlternateContentsForOpeningDocumentAtURL:resolvingSymlinks:thenContinueOnMainThreadWithAccessor:]_block_invoke.871 (in AppKit)
19 __144-[NSDocumentController _coordinateReadingAndGetAlternateContentsForOpeningDocumentAtURL:resolvingSymlinks:thenContinueOnMainThreadWithAccessor:]_block_invoke.869 (in AppKit)
20 ___NSMainRunLoopPerformBlockInModes_block_invoke (in AppKit)
21 __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ (in CoreFoundation)
22 __CFRunLoopDoBlocks (in CoreFoundation)
23 __CFRunLoopRun (in CoreFoundation)
24 CFRunLoopRunSpecific (in CoreFoundation)
25 RunCurrentEventLoopInMode (in HIToolbox)
26 ReceiveNextEventCommon (in HIToolbox)
27 _BlockUntilNextEventMatchingListInModeWithFilter (in HIToolbox)
28 _DPSNextEvent (in AppKit)
29 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] (in AppKit)
30 -[DVTApplication nextEventMatchingMask:untilDate:inMode:dequeue:] (in DVTKit)
31 -[NSApplication run] (in AppKit)
32 NSApplicationMain (in AppKit)
33 main (in Xcode)
34 start (in libdyld.dylib)

abort() called

Application Specific Signatures:
window == [window currentlySelectedTabbedWindow]

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x00007fff72ba749a __pthread_kill + 10
1 libsystem_pthread.dylib 0x00007fff72c686cb pthread_kill + 384
2 libsystem_c.dylib 0x00007fff72b2fa1c abort + 120
3 com.apple.dt.IDEKit 0x0000000110c4f0d9 +[IDEAssertionHandler _handleAssertionWithLogString:assertionSignature:assertionReason:extraBacktrace:] + 1276
4 com.apple.dt.IDEKit 0x0000000110c4f694 -[IDEAssertionHandler handleFailureInMethod:object:fileName:lineNumber:assertionSignature:messageFormat:arguments:] + 1249
5 com.apple.dt.DVTFoundation 0x000000010f20e557 _DVTAssertionHandler + 478
6 com.apple.dt.DVTFoundation 0x000000010f20e79e _DVTAssertionFailureHandler + 374
7 com.apple.dt.IDEKit 0x0000000110b6b2f2 -[IDEWorkspaceDocument _restoreSelectedTabsByIdentifierFromStateSaving:] + 1695
8 com.apple.dt.IDEKit 0x0000000110b67541 -[IDEWorkspaceDocument revertStateWithDictionary:] + 264
9 com.apple.dt.DVTFoundation 0x000000010f0a6546 -[DVTStateToken _pullStateFromDictionary:] + 350
10 com.apple.dt.DVTFoundation 0x000000010f0a68f2 -[DVTStateToken pullStateFromRepository] + 169
11 com.apple.dt.IDEKit 0x0000000110b6007a -[IDEWorkspaceDocument _readFromURL:ofType:simpleFilesFocused:error:] + 894
12 com.apple.dt.IDEKit 0x0000000110b6069b -[IDEWorkspaceDocument readFromURL:ofType:error:] + 133
13 com.apple.AppKit 0x00007fff389bb239 -[NSDocument _initWithContentsOfURL:ofType:error:] + 172
14 com.apple.AppKit 0x00007fff389bb122 -[NSDocument initWithContentsOfURL:ofType:error:] + 231
15 com.apple.dt.IDEKit 0x0000000110f34ebc -[IDEDocumentController makeDocumentWithContentsOfURL:ofType:error:] + 2126
16 com.apple.AppKit 0x00007fff38c55240 __97-[NSDocumentController makeDocumentWithContentsOfURL:alternateContents:ofType:completionHandler:]_block_invoke + 91
17 com.apple.AppKit 0x00007fff38c551da -[NSDocumentController makeDocumentWithContentsOfURL:alternateContents:ofType:completionHandler:] + 160
18 com.apple.AppKit 0x00007fff38a37852 __80-[NSDocumentController openDocumentWithContentsOfURL:display:completionHandler:]_block_invoke + 839
19 com.apple.dt.IDEKit 0x0000000110f3b400 __145-[IDEDocumentController _coordinateReadingAndGetAlternateContentsForOpeningDocumentAtURL:resolvingSymlinks:thenContinueOnMainThreadWithAccessor:]_block_invoke + 224
20 com.apple.AppKit 0x00007fff38c543dc __144-[NSDocumentController _coordinateReadingAndGetAlternateContentsForOpeningDocumentAtURL:resolvingSymlinks:thenContinueOnMainThreadWithAccessor:]_block_invoke_4 + 31
21 com.apple.AppKit 0x00007fff38c54732 __144-[NSDocumentController _coordinateReadingAndGetAlternateContentsForOpeningDocumentAtURL:resolvingSymlinks:thenContinueOnMainThreadWithAccessor:]_block_invoke_2.872 + 177
22 com.apple.AppKit 0x00007fff38c5461b __144-[NSDocumentController _coordinateReadingAndGetAlternateContentsForOpeningDocumentAtURL:resolvingSymlinks:thenContinueOnMainThreadWithAccessor:]_block_invoke.871 + 153
23 com.apple.AppKit 0x00007fff38c5452f __144-[NSDocumentController _coordinateReadingAndGetAlternateContentsForOpeningDocumentAtURL:resolvingSymlinks:thenContinueOnMainThreadWithAccessor:]_block_invoke.869 + 243
24 com.apple.AppKit 0x00007fff38c61184 ___NSMainRunLoopPerformBlockInModes_block_invoke + 25
25 com.apple.CoreFoundation 0x00007fff3b508790 __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 12
26 com.apple.CoreFoundation 0x00007fff3b4cbece __CFRunLoopDoBlocks + 386
27 com.apple.CoreFoundation 0x00007fff3b4cbc33 __CFRunLoopRun + 2806
28 com.apple.CoreFoundation 0x00007fff3b4caec8 CFRunLoopRunSpecific + 503
29 com.apple.HIToolbox 0x00007fff3a04367d RunCurrentEventLoopInMode + 292
30 com.apple.HIToolbox 0x00007fff3a0433bd ReceiveNextEventCommon + 600
31 com.apple.HIToolbox 0x00007fff3a043147 _BlockUntilNextEventMatchingListInModeWithFilter + 64
32 com.apple.AppKit 0x00007fff386c8864 _DPSNextEvent + 990
33 com.apple.AppKit 0x00007fff386c75d4 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1352
34 com.apple.dt.DVTKit 0x000000010f865feb -[DVTApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 390
35 com.apple.AppKit 0x00007fff386c1d76 -[NSApplication run] + 658
36 com.apple.AppKit 0x00007fff386b395d NSApplicationMain + 777
37 com.apple.dt.Xcode 0x000000010ef3be8d main + 541
38 libdyld.dylib 0x00007fff72a582e5 start + 1

Thread 1:
0 libsystem_pthread.dylib 0x00007fff72c6556c start_wqthread + 0

Thread 2:
0 libsystem_kernel.dylib 0x00007fff72ba1166 mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff72ba16cc mach_msg + 60
2 com.apple.CoreFoundation 0x00007fff3b4cc260 __CFRunLoopServiceMachPort + 322
3 com.apple.CoreFoundation 0x00007fff3b4cb7e6 __CFRunLoopRun + 1705
4 com.apple.CoreFoundation 0x00007fff3b4caec8 CFRunLoopRunSpecific + 503
5 com.apple.Foundation 0x00007fff3db946ed -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 212
6 com.apple.DTDeviceKitBase 0x000000012769544e +[DTDKRemoteDeviceConnection startServiceBrowsers] + 204
7 com.apple.Foundation 0x00007fff3db8a932 __NSThread__start__ + 1064
8 libsystem_pthread.dylib 0x00007fff72c68d36 _pthread_start + 125
9 libsystem_pthread.dylib 0x00007fff72c6558f thread_start + 15

Thread 3:
0 libsystem_kernel.dylib 0x00007fff72ba1166 mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff72ba16cc mach_msg + 60
2 com.apple.CoreFoundation 0x00007fff3b4cc260 __CFRunLoopServiceMachPort + 322
3 com.apple.CoreFoundation 0x00007fff3b4cb7e6 __CFRunLoopRun + 1705
4 com.apple.CoreFoundation 0x00007fff3b4caec8 CFRunLoopRunSpecific + 503
5 com.apple.Foundation 0x00007fff3db946ed -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 212
6 com.apple.DTDeviceKitBase 0x00000001276a2f7d -[DTDKRemoteDeviceDataListener listenerThreadImplementation] + 636
7 com.apple.Foundation 0x00007fff3db8a932 __NSThread__start__ + 1064
8 libsystem_pthread.dylib 0x00007fff72c68d36 _pthread_start + 125
9 libsystem_pthread.dylib 0x00007fff72c6558f thread_start + 15

Thread 4:: com.apple.CFSocket.private
0 libsystem_kernel.dylib 0x00007fff72ba87e6 __select + 10
1 com.apple.CoreFoundation 0x00007fff3b4f94d5 __CFSocketManager + 639
2 libsystem_pthread.dylib 0x00007fff72c68d36 _pthread_start + 125
3 libsystem_pthread.dylib 0x00007fff72c6558f thread_start + 15

Thread 5:: JavaScriptCore bmalloc scavenger
0 libsystem_kernel.dylib 0x00007fff72ba4916 __psynch_cvwait + 10
1 libsystem_pthread.dylib 0x00007fff72c69040 _pthread_cond_wait + 701
2 libc++.1.dylib 0x00007fff6fb9281a std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 18
3 com.apple.JavaScriptCore 0x00007fff3fbf0654 void std::__1::condition_variable_any::wait<std::__1::unique_lock<bmalloc::Mutex> >(std::__1::unique_lock<bmalloc::Mutex>&) + 84
4 com.apple.JavaScriptCore 0x00007fff3fbf4b6b bmalloc::Scavenger::threadRunLoop() + 331
5 com.apple.JavaScriptCore 0x00007fff3fbf46e9 bmalloc::Scavenger::threadEntryPoint(bmalloc::Scavenger*) + 9
6 com.apple.JavaScriptCore 0x00007fff3fbf6f07 void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, void (*)(bmalloc::Scavenger*), bmalloc::Scavenger*> >(void*) + 39
7 libsystem_pthread.dylib 0x00007fff72c68d36 _pthread_start + 125
8 libsystem_pthread.dylib 0x00007fff72c6558f thread_start + 15

Thread 6:: com.apple.NSEventThread
0 libsystem_kernel.dylib 0x00007fff72ba1166 mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff72ba16cc mach_msg + 60
2 com.apple.CoreFoundation 0x00007fff3b4cc260 __CFRunLoopServiceMachPort + 322
3 com.apple.CoreFoundation 0x00007fff3b4cb7e6 __CFRunLoopRun + 1705
4 com.apple.CoreFoundation 0x00007fff3b4caec8 CFRunLoopRunSpecific + 503
5 com.apple.AppKit 0x00007fff386cfdba _NSEventThread + 132
6 libsystem_pthread.dylib 0x00007fff72c68d36 _pthread_start + 125
7 libsystem_pthread.dylib 0x00007fff72c6558f thread_start + 15

Thread 7:
0 libsystem_pthread.dylib 0x00007fff72c6556c start_wqthread + 0

Thread 8:: DYMobileDeviceManager
0 libsystem_kernel.dylib 0x00007fff72ba1166 mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff72ba16cc mach_msg + 60
2 com.apple.CoreFoundation 0x00007fff3b4cc260 __CFRunLoopServiceMachPort + 322
3 com.apple.CoreFoundation 0x00007fff3b4cb7e6 __CFRunLoopRun + 1705
4 com.apple.CoreFoundation 0x00007fff3b4caec8 CFRunLoopRunSpecific + 503
5 com.apple.Foundation 0x00007fff3db946ed -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 212
6 com.apple.Foundation 0x00007fff3db94606 -[NSRunLoop(NSRunLoop) run] + 76
7 com.apple.GPUToolsMobileFoundation 0x0000000131b315a9 -[DYMobileDeviceManager _deviceNotificationThread:] + 126
8 com.apple.Foundation 0x00007fff3db8a932 __NSThread__start__ + 1064
9 libsystem_pthread.dylib 0x00007fff72c68d36 _pthread_start + 125
10 libsystem_pthread.dylib 0x00007fff72c6558f thread_start + 15

Thread 9:: Dispatch queue: IDESourceControlAccountManager - Accounts/Repositories Queue
0 libsystem_kernel.dylib 0x00007fff72ba11a2 semaphore_wait_trap + 10
1 libdispatch.dylib 0x00007fff72a0899d _dispatch_sema4_wait + 16
2 libdispatch.dylib 0x00007fff72a08e6a _dispatch_semaphore_wait_slow + 98
3 com.apple.dt.DVTFoundation 0x000000010f258aac DVTSyncPerformBlock + 437
4 com.apple.dt.IDEFoundation 0x00000001100c5b37 specialized IDESourceControlAccountManager.findHostedAccount(matching:_:) + 407
5 com.apple.dt.IDEFoundation 0x00000001100b8abc IDESourceControlAccountManager.existingAccount(for:authenticationStrategy:createIfNeeded:) + 316
6 com.apple.dt.IDEFoundation 0x00000001100ba674 @objc IDESourceControlAccountManager.existingAccount(for:authenticationStrategy:createIfNeeded:) + 84
7 com.apple.dt.Xcode.DVTSourceControl 0x000000011ba35327 -[DVTSourceControlRemoteRepository _initWithURL:sourceControlSystem:authenticationStrategy:save:] + 234
8 com.apple.dt.Xcode.DVTSourceControl 0x000000011ba3550e -[DVTSourceControlRemoteRepository initWithURL:sourceControlSystem:unsavedAuthenticationStrategy:] + 74
9 com.apple.dt.Xcode.DVTSourceControl 0x000000011ba35706 -[DVTSourceControlRemoteRepository initWithURL:identifier:sourceControlSystem:unsavedAuthenticationStrategy:] + 91
10 com.apple.dt.Xcode.DVTSourceControl 0x000000011ba3594e -[DVTSourceControlRemoteRepository initWithDictionary:authenticationStrategy:] + 302
11 com.apple.dt.IDEFoundation 0x00000001100c086d IDESourceControlAccountManager.loadAccounts(from:) + 2781
12 com.apple.dt.IDEFoundation 0x00000001100c69e1 partial apply for closure #1 in IDESourceControlAccountManager.loadAccounts() + 65
13 com.apple.dt.IDEFoundation 0x00000001100730d9 thunk for @escaping @callee_guaranteed () -> () + 25
14 com.apple.Foundation 0x00007fff3dbcdc1d __NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK__ + 7
15 com.apple.Foundation 0x00007fff3dbcdb15 -[NSBlockOperation main] + 98
16 com.apple.Foundation 0x00007fff3dd3ed80 __NSOPERATION_IS_INVOKING_MAIN__ + 17
17 com.apple.Foundation 0x00007fff3dba4524 -[NSOperation start] + 731
18 com.apple.Foundation 0x00007fff3dd3f18e __NSOPERATIONQUEUE_IS_STARTING_AN_OPERATION__ + 17
19 com.apple.Foundation 0x00007fff3dbcd8e8 __NSOQSchedule_f + 182
20 libdispatch.dylib 0x00007fff72a14134 _dispatch_block_async_invoke2 + 83
21 libdispatch.dylib 0x00007fff72a0850e _dispatch_client_callout + 8
22 libdispatch.dylib 0x00007fff72a0dace _dispatch_lane_serial_drain + 597
23 libdispatch.dylib 0x00007fff72a0e452 _dispatch_lane_invoke + 363
24 libdispatch.dylib 0x00007fff72a17a9e _dispatch_workloop_worker_thread + 598
25 libsystem_pthread.dylib 0x00007fff72c6571b _pthread_wqthread + 290
26 libsystem_pthread.dylib 0x00007fff72c6557b start_wqthread + 15

Thread 10:
0 libsystem_pthread.dylib 0x00007fff72c6556c start_wqthread + 0

Thread 11:
0 libsystem_pthread.dylib 0x00007fff72c6556c start_wqthread + 0

Thread 12:
0 libsystem_pthread.dylib 0x00007fff72c6556c start_wqthread + 0

Thread 13:
0 libsystem_kernel.dylib 0x00007fff72ba5032 __semwait_signal + 10
1 libsystem_c.dylib 0x00007fff72b280fa nanosleep + 196
2 com.apple.CoreSymbolicationDT 0x0000000111cc1391 cleaner_thread_main(void*) + 41
3 libsystem_pthread.dylib 0x00007fff72c68d36 _pthread_start + 125
4 libsystem_pthread.dylib 0x00007fff72c6558f thread_start + 15

Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x0000000000000000 rbx: 0x000000011278cdc0 rcx: 0x00007ffee0cc2f78 rdx: 0x0000000000000000
rdi: 0x0000000000000307 rsi: 0x0000000000000006 rbp: 0x00007ffee0cc2fa0 rsp: 0x00007ffee0cc2f78
r8: 0x00000001114ea6b8 r9: 0x00000001112e6ebe r10: 0x0000000000000000 r11: 0x0000000000000246
r12: 0x0000000000000307 r13: 0x00000001114dc138 r14: 0x0000000000000006 r15: 0x0000000000000016
rip: 0x00007fff72ba749a rfl: 0x0000000000000246 cr2: 0x00007ffb6f0b9f88

Logical CPU: 0
Error Code: 0x02000148
Trap Number: 133
2771 次点击
所在节点    问与答
7 条回复
kingcos
2019-11-03 11:53:49 +08:00
没看错的话,这是 Xcode 自己崩溃了的崩溃信息?。。
sheny
2019-11-04 09:28:45 +08:00
RyanGo
2019-11-07 20:51:49 +08:00
@kingcos 是的
RyanGo
2019-11-07 20:52:10 +08:00
@sheny 有点郁闷的是没升级前也崩溃
cooper2018
2019-11-09 10:36:24 +08:00
我现在也是相同的问题,只有某一个工程是这样。感觉是本地保存的 Xcode 工作状态的数据出了问题。
此前尝试过重装 Xcode 和安装 beta 版,都无法解决(未完全清空 Xcode 残留)。
cooper2018
2019-11-09 10:49:35 +08:00
找到解决方法了。到对应的崩溃工程下,删掉.xcworkspace(或者.xcodeproj)/xcuserdata/下的所有文件。可能是因为这些文件损坏了。
RyanGo
2019-11-09 19:48:01 +08:00
@cooper2018 是的只有各别项目 我尝试把 xcworkspace 的包内容下的 xcuserdata 删除 竟然可以了

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/615736

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX