Xcode 9.2 crashing on successful build with react-native - ios

I have a react-native application which was working fine this morning but now I can't get it to build at all. I ran into some major linking errors today, and was getting build errors for a while. I finally managed to get the build to succeed after abandoning manual linking and using a combination of react-native link and pod install. But now when the build succeeds Xcode itself crashes. The simulator is opening but Xcode crashes before it can even try to install the new build. I have never seen anything like it before with Xcode.
react-native 0.51.0
react 16.0.0
node 7.8.0
Xcode 9.2
Cocoapods 1.4.0
Error report:
Process: Xcode [3747] Path:
/Applications/Xcode.app/Contents/MacOS/Xcode Identifier:
Xcode Version: 9.2 (13772) App Item ID:
497799835 App External ID: 825038102 Code Type:
X86-64 (Native) Parent Process: ??? [1] Responsible:
Xcode [3747] User ID: 502
Date/Time: 2018-03-31 20:10:21.783 -0500 OS Version:
Mac OS X 10.13.3 (17D102) Report Version: 12 Anonymous UUID:
D8F23055-EFF7-4CD7-5BEE-671DADA76EF5
Time Awake Since Boot: 640 seconds
System Integrity Protection: enabled
Crashed Thread: 18 Dispatch queue: ConcurrentQueue:
-[DVTiPhoneSimulator launchSimulatedExecutable:launchService:error:]_block_invoke_3
Exception Type: EXC_CRASH (SIGABRT) Exception Codes:
0x0000000000000000, 0x0000000000000000 Exception Note:
EXC_CORPSE_NOTIFY
Application Specific Information: ProductBuildVersion: 9C40b UNCAUGHT
EXCEPTION (NSInvalidArgumentException): ***
-[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[0] UserInfo: (null) Hints:
Backtrace: 0 __exceptionPreprocess (in CoreFoundation) 1
DVTFailureHintExceptionPreprocessor (in DVTFoundation) 2
objc_exception_throw (in libobjc.A.dylib) 3
_CFThrowFormattedException (in CoreFoundation) 4 -[__NSPlaceholderDictionary initWithObjects:forKeys:count:] (in CoreFoundation) 5 +[NSDictionary
dictionaryWithObjects:forKeys:count:] (in CoreFoundation) 6
__68-[DVTiPhoneSimulator launchSimulatedExecutable:launchService:error:]_block_invoke.807 (in
IDEiOSSupportCore) 7 __38-[DVTFuture(DVTFutureAdditions)
then:]_block_invoke_2 (in DVTFoundation) 8 __44-[DVTFuture
_internalSetState:result:error:]_block_invoke.207 (in DVTFoundation) 9 -[DVTFuture setState:result:error:] (in DVTFoundation) 10
__54-[DVTFuture trackFuture:progress:cancel:result:error:]_block_invoke.266 (in
DVTFoundation) 11 -[DVTFuture observeFinish:] (in DVTFoundation)
12 -[DVTFuture trackFuture:progress:cancel:result:error:] (in
DVTFoundation) 13 -[DVTFuture trackFuture:] (in DVTFoundation) 14
__38-[DVTFuture(DVTFutureAdditions) then:]_block_invoke_2 (in DVTFoundation) 15 __44-[DVTFuture
_internalSetState:result:error:]_block_invoke.207 (in DVTFoundation) 16 -[DVTFuture setState:result:error:] (in DVTFoundation) 17
__54-[DVTFuture trackFuture:progress:cancel:result:error:]_block_invoke.266 (in
DVTFoundation) 18 __44-[DVTFuture
_internalSetState:result:error:]_block_invoke.207 (in DVTFoundation) 19 -[DVTFuture setState:result:error:] (in DVTFoundation) 20
-[DVTFuture succeedWithResult:] (in DVTFoundation) 21 __68-[DVTiPhoneSimulator launchSimulatedExecutable:launchService:error:]_block_invoke_4 (in
IDEiOSSupportCore) 22 __DVTCreateSingleCallBlock_block_invoke (in
DVTFoundation) 23 _dispatch_client_callout (in libdispatch.dylib)
24 _dispatch_block_invoke_direct (in libdispatch.dylib) 25
__DVTDispatchAsync_block_invoke (in DVTFoundation) 26 _dispatch_call_block_and_release (in libdispatch.dylib) 27 _dispatch_client_callout (in libdispatch.dylib) 28 _dispatch_continuation_pop (in libdispatch.dylib) 29 _dispatch_async_redirect_invoke (in libdispatch.dylib) 30 _dispatch_root_queue_drain (in libdispatch.dylib) 31 _dispatch_worker_thread3 (in libdispatch.dylib) 32 _pthread_wqthread (in libsystem_pthread.dylib) 33 start_wqthread (in libsystem_pthread.dylib) abort() called
Application Specific Signatures: NSInvalidArgumentException
Application Specific Backtrace 1: 0 CoreFoundation
0x00007fff50ccafcb __exceptionPreprocess + 171 1 DVTFoundation
0x0000000107063a5c DVTFailureHintExceptionPreprocessor + 274 2
libobjc.A.dylib 0x00007fff77980c76
objc_exception_throw + 48 3 CoreFoundation
0x00007fff50d0c264 _CFThrowFormattedException + 202 4 CoreFoundation
0x00007fff50bce6c2 -[__NSPlaceholderDictionary
initWithObjects:forKeys:count:] + 322 5 CoreFoundation
0x00007fff50bce54b +[NSDictionary
dictionaryWithObjects:forKeys:count:] + 59 6 IDEiOSSupportCore
0x0000000119710f51 __68-[DVTiPhoneSimulator
launchSimulatedExecutable:launchService:error:]_block_invoke.807 + 108
7 DVTFoundation 0x0000000106fbd909
__38-[DVTFuture(DVTFutureAdditions) then:]_block_invoke_2 + 104 8 DVTFoundation 0x0000000106fbb5c3 __44-[DVTFuture
_internalSetState:result:error:]_block_invoke.207 + 89 9 DVTFoundation 0x0000000106fbb8d9 -[DVTFuture
setState:result:error:] + 199 10 DVTFoundation
0x0000000106fbca1a __54-[DVTFuture
trackFuture:progress:cancel:result:error:]_block_invoke.266 + 119 11
DVTFoundation 0x0000000106fb9565 -[DVTFuture
observeFinish:] + 277 12 DVTFoundation
0x0000000106fbc7e8 -[DVTFuture
trackFuture:progress:cancel:result:error:] + 331 13 DVTFoundation
0x0000000106fbd0a8 -[DVTFuture trackFuture:] + 42 14 DVTFoundation
0x0000000106fbd927 __38-[DVTFuture(DVTFutureAdditions)
then:]_block_invoke_2 + 134 15 DVTFoundation
0x0000000106fbb5c3 __44-[DVTFuture
_internalSetState:result:error:]_block_invoke.207 + 89 16 DVTFoundation 0x0000000106fbb8d9 -[DVTFuture
setState:result:error:] + 199 17 DVTFoundation
0x0000000106fbca1a __54-[DVTFuture
trackFuture:progress:cancel:result:error:]_block_invoke.266 + 119 18
DVTFoundation 0x0000000106fbb5c3 __44-[DVTFuture
_internalSetState:result:error:]_block_invoke.207 + 89 19 DVTFoundation 0x0000000106fbb8d9 -[DVTFuture
setState:result:error:] + 199 20 DVTFoundation
0x0000000106fbbb0a -[DVTFuture succeedWithResult:] + 31 21
IDEiOSSupportCore 0x0000000119710abf
__68-[DVTiPhoneSimulator launchSimulatedExecutable:launchService:error:]_block_invoke_4 + 70 22
DVTFoundation 0x0000000106f8606d
__DVTCreateSingleCallBlock_block_invoke + 133 23 libdispatch.dylib 0x00007fff78536d50 _dispatch_client_callout + 8 24 libdispatch.dylib
0x00007fff78549333 _dispatch_block_invoke_direct + 317 25
DVTFoundation 0x00000001070b9a4f
__DVTDispatchAsync_block_invoke + 806 26 libdispatch.dylib 0x00007fff7853e591 _dispatch_call_block_and_release + 12 27
libdispatch.dylib 0x00007fff78536d50
_dispatch_client_callout + 8 28 libdispatch.dylib 0x00007fff78549e76 _dispatch_continuation_pop + 472 29
libdispatch.dylib 0x00007fff785416cb
_dispatch_async_redirect_invoke + 703 30 libdispatch.dylib 0x00007fff78538941 _dispatch_root_queue_drain + 515 31
libdispatch.dylib 0x00007fff785386ed
_dispatch_worker_thread3 + 101 32 libsystem_pthread.dylib 0x00007fff787fb1ca _pthread_wqthread + 1387 33
libsystem_pthread.dylib 0x00007fff787fac4d start_wqthread
+ 13
Thread 0:: Dispatch queue: com.apple.main-thread 0
libsystem_kernel.dylib 0x00007fff786b67c2 mach_msg_trap + 10 1
libsystem_kernel.dylib 0x00007fff786b5cdc mach_msg + 60 2
com.apple.CoreFoundation 0x00007fff50c46575
__CFRunLoopServiceMachPort + 341 3 com.apple.CoreFoundation 0x00007fff50c458c7 __CFRunLoopRun + 1783 4 com.apple.CoreFoundation
0x00007fff50c44f43 CFRunLoopRunSpecific + 483 5 com.apple.HIToolbox
0x00007fff4ff5ce26 RunCurrentEventLoopInMode + 286 6
com.apple.HIToolbox 0x00007fff4ff5cb96
ReceiveNextEventCommon + 613 7 com.apple.HIToolbox
0x00007fff4ff5c914 _BlockUntilNextEventMatchingListInModeWithFilter +
64 8 com.apple.AppKit 0x00007fff4e227f5f _DPSNextEvent
+ 2085 9 com.apple.AppKit 0x00007fff4e9bdb4c -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 3044 10 com.apple.dt.DVTKit 0x0000000107672f9a -[DVTApplication
nextEventMatchingMask:untilDate:inMode:dequeue:] + 390 11
com.apple.AppKit 0x00007fff4e21cd6d -[NSApplication run]
+ 764 12 com.apple.AppKit 0x00007fff4e1ebf1a NSApplicationMain + 804 13 libdyld.dylib
0x00007fff78570115 start + 1
Thread 1: 0 libsystem_kernel.dylib 0x00007fff786b67c2
mach_msg_trap + 10 1 libsystem_kernel.dylib
0x00007fff786b5cdc mach_msg + 60 2 com.apple.CoreFoundation
0x00007fff50c46575 CFRunLoopServiceMachPort + 341 3
com.apple.CoreFoundation 0x00007fff50c458c7 __CFRunLoopRun +
1783 4 com.apple.CoreFoundation 0x00007fff50c44f43
CFRunLoopRunSpecific + 483 5 com.apple.Foundation
0x00007fff52d16c16 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 277
6 com.apple.DTDeviceKitBase 0x00000001197c9917
+[DTDKRemoteDeviceConnection startServiceBrowsers] + 217 7 com.apple.Foundation 0x00007fff52d24ee8 __NSThread__start
+ 1197 8 libsystem_pthread.dylib 0x00007fff787fb6c1 _pthread_body + 340 9 libsystem_pthread.dylib 0x00007fff787fb56d _pthread_start + 377 10 libsystem_pthread.dylib
0x00007fff787fac5d thread_start + 13
The error report goes on and on but there wasn't anything that seemed relevant in it.

I had overwritten some files as part of my troubleshooting and accidentally deleted my projects bundle identifier. Resetting that made everything work again.

Related

MacInCloud - Xcode quits unexpectedly (10.3)

Using MacInCloud's managed server.
Tried opening another example project downloaded on Github, doesn't work.
Tried everything here: Xcode quits unexpectedly every time I open my project
None of them worked.
Full stack trace on Gist: https://gist.github.com/topherseance/e733af8a420682b20d423a6bd57b3d5e
Snippet of the stack trace (omitted because it's too long to fit in SO question)
Process: Xcode [26214]
Path: /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 10.3 (14492.2)
Build Info: IDEFrameworks-14492002000000000~2
App Item ID: 497799835
App External ID: 832020435
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Xcode [26214]
User ID: 597
Date/Time: 2019-09-21 01:39:45.391 +0800
OS Version: Mac OS X 10.14.6 (18G95)
Report Version: 12
Anonymous UUID: 6EFBD89B-405E-274D-2EDB-E2B334A57DD8
Time Awake Since Boot: 85000 seconds
System Integrity Protection: disabled
Crashed Thread: 0 Dispatch queue: DVTPlugInExtensionFaultingLock
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Application Specific Information:
ProductBuildVersion: 10G8
UNCAUGHT EXCEPTION (NSInternalInconsistencyException): Extension Xcode.InterfaceBuilderKit.ImageKitIntegration.Integrator.IKImageBrowserView class 'IKImageBrowserView' not found for required key 'integratedClass'
UserInfo: {
DVTExtensionClassNameErrorKey = IKImageBrowserView;
DVTExtensionIdentifierErrorKey = "Xcode.InterfaceBuilderKit.ImageKitIntegration.Integrator.IKImageBrowserView";
DVTPlugInExecutablePathErrorKey = "/Applications/Xcode.app/Contents/PlugIns/IDEInterfaceBuilderCocoaIntegration.framework";
DVTPlugInIdentifierErrorKey = "com.apple.dt.IDE.IDEInterfaceBuilderCocoaIntegration";
}
Hints:
Backtrace:
0 __exceptionPreprocess (in CoreFoundation)
1 DVTFailureHintExceptionPreprocessor (in DVTFoundation)
2 objc_exception_throw (in libobjc.A.dylib)
3 -[DVTExtension _adjustClassAttribute:forKey:inParameterData:] (in DVTFoundation)
4 -[DVTExtension _adjustClassReferencesInParameterData:usingSchema:] (in DVTFoundation)
5 -[DVTExtension _fireExtensionFault:] (in DVTFoundation)
6 __63-[DVTExtension _valueForKey:inParameterData:usingSchema:error:]_block_invoke (in DVTFoundation)
7 _dispatch_client_callout (in libdispatch.dylib)
8 _dispatch_lane_barrier_sync_invoke_and_complete (in libdispatch.dylib)
9 DVTDispatchBarrierSync (in DVTFoundation)
10 -[DVTDispatchLock performLockedBlock:] (in DVTFoundation)
11 -[DVTExtension _valueForKey:inParameterData:usingSchema:error:] (in DVTFoundation)
12 -[DVTExtension valueForKey:] (in DVTFoundation)
13 -[IBIntegratorManager registerIntegrators:] (in IDEInterfaceBuilderKit)
14 -[IBIntegratorManager loadAllIntegrators] (in IDEInterfaceBuilderKit)
15 -[IBInterfaceBuilderPlugin init] (in IDEInterfaceBuilderKit)
16 +[IBInterfaceBuilderPlugin ide_initializeWithOptions:error:] (in IDEInterfaceBuilderKit)
17 _IDEInitializeOnePlugInAndPrerequisites (in IDEFoundation)
18 _IDEInitializeOnePlugInAndPrerequisites (in IDEFoundation)
19 _IDEInitializeOnePlugInAndPrerequisites (in IDEFoundation)
20 _IDEInitializePlugIns (in IDEFoundation)
21 __IDEInitialize_block_invoke (in IDEFoundation)
22 __IDERunBlockWhenSafeToLoadMobileDevice_block_invoke (in IDEFoundation)
23 IDESetSafeToLoadMobileDevice (in IDEFoundation)
24 -[IDEWelcomeWindowController _prepareXcodeForUIWithRegistrationAndSetupOfExtraServices:] (in IDEKit)
25 -[IDEWelcomeWindowController _showFirstLaunchExperienceIfAppropriate] (in IDEKit)
26 -[IDEWelcomeWindowController openWelcomeWindowAfterFirstLaunchExperienceIfAppropriate:] (in IDEKit)
27 -[IDEApplicationController applicationOpenUntitledFile:] (in IDEKit)
28 -[NSApplication _doOpenUntitled] (in AppKit)
29 __58-[NSApplication(NSAppleEventHandling) _handleAEOpenEvent:]_block_invoke (in AppKit)
30 __90-[NSDocumentController(NSInternal) _autoreopenDocumentsFromRecords:withCompletionHandler:]_block_invoke (in AppKit)
31 -[NSDocumentController(NSInternal) _autoreopenDocumentsFromRecords:withCompletionHandler:] (in AppKit)
32 __97-[NSDocumentController(NSInternal) _autoreopenDocumentsIgnoringExpendable:withCompletionHandler:]_block_invoke_3 (in AppKit)
33 -[NSDocumentController(NSInternal) _autoreopenDocumentsIgnoringExpendable:withCompletionHandler:] (in AppKit)
34 -[NSApplication _reopenWindowsAsNecessaryIncludingRestorableState:completionHandler:] (in AppKit)
35 -[NSApplication(NSAppleEventHandling) _handleAEOpenEvent:] (in AppKit)
36 -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:] (in AppKit)
37 -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:] (in Foundation)
38 -[NSAppleEventManager(DVTAssertionOverrides) swizzleDispatchRawAppleEvent:withRawReply:handlerRefCon:] (in IDEKit)
39 _NSAppleEventManagerGenericHandler (in Foundation)
40 aeDispatchAppleEvent(AEDesc const*, AEDesc*, unsigned int, unsigned char*) (in AE)
41 dispatchEventAndSendReply(AEDesc const*, AEDesc*) (in AE)
42 aeProcessAppleEvent (in AE)
43 AEProcessAppleEvent (in HIToolbox)
44 _DPSNextEvent (in AppKit)
45 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] (in AppKit)
46 -[DVTApplication nextEventMatchingMask:untilDate:inMode:dequeue:] (in DVTKit)
47 -[NSApplication run] (in AppKit)
48 NSApplicationMain (in AppKit)
49 main (in Xcode)
50 start (in libdyld.dylib)
abort() called
Application Specific Signatures:
NSInternalInconsistencyException
Application Specific Backtrace 1:
0 CoreFoundation 0x00007fff475ca439 __exceptionPreprocess + 256
1 DVTFoundation 0x0000000101a474f6 DVTFailureHintExceptionPreprocessor + 274
2 libobjc.A.dylib 0x00007fff71d413c6 objc_exception_throw + 48
3 DVTFoundation 0x0000000101870dd0 -[DVTExtension _adjustClassAttribute:forKey:inParameterData:] + 711
4 DVTFoundation 0x0000000101871419 -[DVTExtension _adjustClassReferencesInParameterData:usingSchema:] + 482
5 DVTFoundation 0x000000010187192e -[DVTExtension _fireExtensionFault:] + 494
6 DVTFoundation 0x000000010186f600 __63-[DVTExtension _valueForKey:inParameterData:usingSchema:error:]_block_invoke + 245
7 libdispatch.dylib 0x00007fff734b963d _dispatch_client_callout + 8
8 libdispatch.dylib 0x00007fff734c5129 _dispatch_lane_barrier_sync_invoke_and_complete + 60
9 DVTFoundation 0x0000000101a91fec DVTDispatchBarrierSync + 208
10 DVTFoundation 0x0000000101a67ffa -[DVTDispatchLock performLockedBlock:] + 73
11 DVTFoundation 0x000000010186f153 -[DVTExtension _valueForKey:inParameterData:usingSchema:error:] + 495
12 DVTFoundation 0x000000010186f948 -[DVTExtension valueForKey:] + 179
13 IDEInterfaceBuilderKit 0x000000011a6defd8 -[IBIntegratorManager registerIntegrators:] + 388
14 IDEInterfaceBuilderKit 0x000000011a6df7db -[IBIntegratorManager loadAllIntegrators] + 173
15 IDEInterfaceBuilderKit 0x000000011a6e18c6 -[IBInterfaceBuilderPlugin init] + 329
16 IDEInterfaceBuilderKit 0x000000011a6e1763 +[IBInterfaceBuilderPlugin ide_initializeWithOptions:error:] + 34
17 IDEFoundation 0x000000010288fe90 _IDEInitializeOnePlugInAndPrerequisites + 2283
18 IDEFoundation 0x000000010288f7c4 _IDEInitializeOnePlugInAndPrerequisites + 543
19 IDEFoundation 0x000000010288f7c4 _IDEInitializeOnePlugInAndPrerequisites + 543
20 IDEFoundation 0x000000010288e6c4 _IDEInitializePlugIns + 1404
21 IDEFoundation 0x000000010288df21 __IDEInitialize_block_invoke + 46
22 IDEFoundation 0x000000010288e9fc __IDERunBlockWhenSafeToLoadMobileDevice_block_invoke + 97
23 IDEFoundation 0x000000010288ef1a IDESetSafeToLoadMobileDevice + 286
24 IDEKit 0x000000010359d18d -[IDEWelcomeWindowController _prepareXcodeForUIWithRegistrationAndSetupOfExtraServices:] + 232
25 IDEKit 0x000000010359cf97 -[IDEWelcomeWindowController _showFirstLaunchExperienceIfAppropriate] + 494
26 IDEKit 0x000000010359ccd5 -[IDEWelcomeWindowController openWelcomeWindowAfterFirstLaunchExperienceIfAppropriate:] + 27
27 IDEKit 0x00000001034e4537 -[IDEApplicationController applicationOpenUntitledFile:] + 247
28 AppKit 0x00007fff44b02202 -[NSApplication _doOpenUntitled] + 429
29 AppKit 0x00007fff44b01cfe __58-[NSApplication(NSAppleEventHandling) _handleAEOpenEvent:]_block_invoke + 234
30 AppKit 0x00007fff44b01a7a __90-[NSDocumentController(NSInternal) _autoreopenDocumentsFromRecords:withCompletionHandler:]_block_invoke + 66
31 AppKit 0x00007fff44b019af -[NSDocumentController(NSInternal) _autoreopenDocumentsFromRecords:withCompletionHandler:] + 342
32 AppKit 0x00007fff44b01831 __97-[NSDocumentController(NSInternal) _autoreopenDocumentsIgnoringExpendable:withCompletionHandler:]_block_invoke_3 + 95
33 AppKit 0x00007fff44b01416 -[NSDocumentController(NSInternal) _autoreopenDocumentsIgnoringExpendable:withCompletionHandler:] + 722
34 AppKit 0x00007fff44b00c69 -[NSApplication _reopenWindowsAsNecessaryIncludingRestorableState:completionHandler:] + 249
35 AppKit 0x00007fff44b00a5e -[NSApplication(NSAppleEventHandling) _handleAEOpenEvent:] + 539
36 AppKit 0x00007fff44b006bb -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:] + 688
37 Foundation 0x00007fff497d4700 -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:] + 286
38 IDEKit 0x0000000103502351 -[NSAppleEventManager(DVTAssertionOverrides) swizzleDispatchRawAppleEvent:withRawReply:handlerRefCon:] + 101
39 Foundation 0x00007fff497d457d _NSAppleEventManagerGenericHandler + 102
40 AE 0x00007fff48756397 _Z20aeDispatchAppleEventPK6AEDescPS_jPh + 1815
41 AE 0x00007fff48755c29 _ZL25dispatchEventAndSendReplyPK6AEDescPS_ + 41
42 AE 0x00007fff48755b01 aeProcessAppleEvent + 414
43 HIToolbox 0x00007fff4676d8b7 AEProcessAppleEvent + 54
44 AppKit 0x00007fff44afcabd _DPSNextEvent + 1935
45 AppKit 0x00007fff44afb48b -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1361
46 DVTKit 0x000000010206a962 -[DVTApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 385
47 AppKit 0x00007fff44af55a8 -[NSApplication run] + 699
48 AppKit 0x00007fff44ae4ae8 NSApplicationMain + 777
49 Xcode 0x00000001017c78a2 main + 578
50 libdyld.dylib 0x00007fff735063d5 start + 1
Thread 0 Crashed:: Dispatch queue: DVTPlugInExtensionFaultingLock
0 libsystem_kernel.dylib 0x00007fff736412c6 __pthread_kill + 10
1 libsystem_pthread.dylib 0x00007fff736fcbf1 pthread_kill + 284
2 libsystem_c.dylib 0x00007fff735ab6a6 abort + 127
3 com.apple.dt.IDEKit 0x0000000103500b37 +[IDEAssertionHandler _handleAssertionWithLogString:assertionSignature:assertionReason:extraBacktrace:] + 1324
4 com.apple.dt.IDEKit 0x00000001035021f9 -[IDEAssertionHandler handleUncaughtException:] + 1094
5 com.apple.dt.IDEKit 0x00000001035022cf IDEHandleUncaughtException + 94
6 com.apple.CoreFoundation 0x00007fff4763ed1d __handleUncaughtException + 775
7 libobjc.A.dylib 0x00007fff71d43775 _objc_terminate() + 91
8 libc++abi.dylib 0x00007fff7079c19e std::__terminate(void (*)()) + 8
9 libc++abi.dylib 0x00007fff7079c213 std::terminate() + 51
10 libdispatch.dylib 0x00007fff734b9651 _dispatch_client_callout + 28
11 libdispatch.dylib 0x00007fff734c5129 _dispatch_lane_barrier_sync_invoke_and_complete + 60
12 com.apple.dt.DVTFoundation 0x0000000101a91fec DVTDispatchBarrierSync + 208
13 com.apple.dt.DVTFoundation 0x0000000101a67ffa -[DVTDispatchLock performLockedBlock:] + 73
14 com.apple.dt.DVTFoundation 0x000000010186f153 -[DVTExtension _valueForKey:inParameterData:usingSchema:error:] + 495
15 com.apple.dt.DVTFoundation 0x000000010186f948 -[DVTExtension valueForKey:] + 179
16 com.apple.dt.IDE.IDEInterfaceBuilderKit 0x000000011a6defd8 -[IBIntegratorManager registerIntegrators:] + 388
17 com.apple.dt.IDE.IDEInterfaceBuilderKit 0x000000011a6df7db -[IBIntegratorManager loadAllIntegrators] + 173
18 com.apple.dt.IDE.IDEInterfaceBuilderKit 0x000000011a6e18c6 -[IBInterfaceBuilderPlugin init] + 329
19 com.apple.dt.IDE.IDEInterfaceBuilderKit 0x000000011a6e1763 +[IBInterfaceBuilderPlugin ide_initializeWithOptions:error:] + 34
20 com.apple.dt.IDEFoundation 0x000000010288fe90 _IDEInitializeOnePlugInAndPrerequisites + 2283
21 com.apple.dt.IDEFoundation 0x000000010288f7c4 _IDEInitializeOnePlugInAndPrerequisites + 543
22 com.apple.dt.IDEFoundation 0x000000010288f7c4 _IDEInitializeOnePlugInAndPrerequisites + 543
23 com.apple.dt.IDEFoundation 0x000000010288e6c4 _IDEInitializePlugIns + 1404
24 com.apple.dt.IDEFoundation 0x000000010288df21 __IDEInitialize_block_invoke + 46
25 com.apple.dt.IDEFoundation 0x000000010288e9fc __IDERunBlockWhenSafeToLoadMobileDevice_block_invoke + 97
26 com.apple.dt.IDEFoundation 0x000000010288ef1a IDESetSafeToLoadMobileDevice + 286
27 com.apple.dt.IDEKit 0x000000010359d18d -[IDEWelcomeWindowController _prepareXcodeForUIWithRegistrationAndSetupOfExtraServices:] + 232
28 com.apple.dt.IDEKit 0x000000010359cf97 -[IDEWelcomeWindowController _showFirstLaunchExperienceIfAppropriate] + 494
29 com.apple.dt.IDEKit 0x000000010359ccd5 -[IDEWelcomeWindowController openWelcomeWindowAfterFirstLaunchExperienceIfAppropriate:] + 27
30 com.apple.dt.IDEKit 0x00000001034e4537 -[IDEApplicationController applicationOpenUntitledFile:] + 247
31 com.apple.AppKit 0x00007fff44b02202 -[NSApplication _doOpenUntitled] + 429
32 com.apple.AppKit 0x00007fff44b01cfe __58-[NSApplication(NSAppleEventHandling) _handleAEOpenEvent:]_block_invoke + 234
33 com.apple.AppKit 0x00007fff44b01a7a __90-[NSDocumentController(NSInternal) _autoreopenDocumentsFromRecords:withCompletionHandler:]_block_invoke + 66
34 com.apple.AppKit 0x00007fff44b019af -[NSDocumentController(NSInternal) _autoreopenDocumentsFromRecords:withCompletionHandler:] + 342
35 com.apple.AppKit 0x00007fff44b01831 __97-[NSDocumentController(NSInternal) _autoreopenDocumentsIgnoringExpendable:withCompletionHandler:]_block_invoke_3 + 95
36 com.apple.AppKit 0x00007fff44b01416 -[NSDocumentController(NSInternal) _autoreopenDocumentsIgnoringExpendable:withCompletionHandler:] + 722
37 com.apple.AppKit 0x00007fff44b00c69 -[NSApplication _reopenWindowsAsNecessaryIncludingRestorableState:completionHandler:] + 249
38 com.apple.AppKit 0x00007fff44b00a5e -[NSApplication(NSAppleEventHandling) _handleAEOpenEvent:] + 539
39 com.apple.AppKit 0x00007fff44b006bb -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:] + 688
40 com.apple.Foundation 0x00007fff497d4700 -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:] + 286
41 com.apple.dt.IDEKit 0x0000000103502351 -[NSAppleEventManager(DVTAssertionOverrides) swizzleDispatchRawAppleEvent:withRawReply:handlerRefCon:] + 101
42 com.apple.Foundation 0x00007fff497d457d _NSAppleEventManagerGenericHandler + 102
43 com.apple.AE 0x00007fff48756397 aeDispatchAppleEvent(AEDesc const*, AEDesc*, unsigned int, unsigned char*) + 1815
44 com.apple.AE 0x00007fff48755c29 dispatchEventAndSendReply(AEDesc const*, AEDesc*) + 41
45 com.apple.AE 0x00007fff48755b01 aeProcessAppleEvent + 414
46 com.apple.HIToolbox 0x00007fff4676d8b7 AEProcessAppleEvent + 54
47 com.apple.AppKit 0x00007fff44afcabd _DPSNextEvent + 1935
48 com.apple.AppKit 0x00007fff44afb48b -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1361
49 com.apple.dt.DVTKit 0x000000010206a962 -[DVTApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 385
50 com.apple.AppKit 0x00007fff44af55a8 -[NSApplication run] + 699
51 com.apple.AppKit 0x00007fff44ae4ae8 NSApplicationMain + 777
52 com.apple.dt.Xcode 0x00000001017c78a2 main + 578
53 libdyld.dylib 0x00007fff735063d5 start + 1
Thread 1:
0 libsystem_pthread.dylib 0x00007fff736f93f0 start_wqthread + 0
Thread 2:
0 libsystem_pthread.dylib 0x00007fff736f93f0 start_wqthread + 0
Thread 3:
0 libsystem_pthread.dylib 0x00007fff736f93f0 start_wqthread + 0
Thread 4:
0 libsystem_pthread.dylib 0x00007fff736f93f0 start_wqthread + 0
Thread 5:: Dispatch queue: com.apple.CoreSimulator.SimServiceContext.profileQueue
0 libsystem_platform.dylib 0x00007fff736ee878 _platform_memcmp + 312
1 com.apple.CoreFoundation 0x00007fff475d7149 __CFStringEqual + 239
2 com.apple.CoreFoundation 0x00007fff474dfaf5 CFBasicHashAddValue + 1205
3 com.apple.CoreFoundation 0x00007fff474e5cc3 CFDictionaryAddValue + 187
4 com.apple.CoreFoundation 0x00007fff4750e601 __54-[CFPrefsSource mergeIntoDictionary:sourceDictionary:]_block_invoke + 22
5 com.apple.CoreFoundation 0x00007fff4750e5ca __CFDictionaryApplyFunction_block_invoke + 22
6 com.apple.CoreFoundation 0x00007fff4750e3b6 CFBasicHashApply + 112
7 com.apple.CoreFoundation 0x00007fff4750e32e CFDictionaryApplyFunction + 130
8 com.apple.CoreFoundation 0x00007fff4750dfec -[CFPrefsSource mergeIntoDictionary:sourceDictionary:] + 128
9 com.apple.CoreFoundation 0x00007fff47508981 -[CFPrefsSearchListSource alreadylocked_getDictionary:] + 594
10 com.apple.CoreFoundation 0x00007fff4750845f -[CFPrefsSearchListSource alreadylocked_copyValueForKey:] + 158
11 com.apple.CoreFoundation 0x00007fff475083a7 -[CFPrefsSource copyValueForKey:] + 47
12 com.apple.CoreFoundation 0x00007fff47508365 __76-[_CFXPreferences copyAppValueForKey:identifier:container:configurationURL:]_block_invoke + 32
13 com.apple.CoreFoundation 0x00007fff474f262e __108-[_CFXPreferences(SearchListAdditions) withSearchListForIdentifier:container:cloudConfigurationURL:perform:]_block_invoke + 268
14 com.apple.CoreFoundation 0x00007fff474f22f0 -[_CFXPreferences(SearchListAdditions) withSearchListForIdentifier:container:cloudConfigurationURL:perform:] + 337
15 com.apple.CoreFoundation 0x00007fff474f2041 -[_CFXPreferences copyAppValueForKey:identifier:container:configurationURL:] + 150
16 com.apple.CoreFoundation 0x00007fff474f1bff _CFPreferencesCopyAppValueWithContainerAndConfiguration + 107
17 com.apple.CoreFoundation 0x00007fff474f1a1f _CFPreferencesGetAppBooleanValueWithContainer + 31
18 com.apple.Foundation 0x00007fff4979644b -[NSUserDefaults(NSUserDefaults) boolForKey:] + 102
19 com.apple.CoreSimulator 0x0000000111781ae0 _SimLogXPC + 205
20 com.apple.CoreSimulator 0x00000001117336ce __72-[SimServiceContext _supportedDeviceTypesAddProfilesAtPath:allowRescan:]_block_invoke + 315
21 libdispatch.dylib 0x00007fff734b963d _dispatch_client_callout + 8
22 libdispatch.dylib 0x00007fff734c5129 _dispatch_lane_barrier_sync_invoke_and_complete + 60
23 com.apple.CoreSimulator 0x00000001117332e1 -[SimServiceContext _supportedDeviceTypesAddProfilesAtPath:allowRescan:] + 1035
24 com.apple.CoreSimulator 0x0000000111736130 -[SimServiceContext addProfilesForDeveloperDir:] + 1386
25 com.apple.CoreSimulator 0x000000011172e367 -[SimServiceContext initWithDeveloperDir:connectionType:error:] + 1309
26 com.apple.CoreSimulator 0x000000011172dd02 __63+[SimServiceContext sharedServiceContextForDeveloperDir:error:]_block_invoke_2 + 187
27 libdispatch.dylib 0x00007fff734b963d _dispatch_client_callout + 8
28 libdispatch.dylib 0x00007fff734c5129 _dispatch_lane_barrier_sync_invoke_and_complete + 60
29 com.apple.CoreSimulator 0x000000011172d8c5 +[SimServiceContext sharedServiceContextForDeveloperDir:error:] + 252
30 com.apple.DVTiPhoneSimulatorRemoteClient 0x0000000117b4a786 __60+[SimServiceContext(DVTAdditions) dvt_sharedServiceContext:]_block_invoke + 158
31 libdispatch.dylib 0x00007fff734b963d _dispatch_client_callout + 8
32 libdispatch.dylib 0x00007fff734bad4b _dispatch_once_callout + 20
33 com.apple.DVTiPhoneSimulatorRemoteClient 0x0000000117b4a6a3 +[SimServiceContext(DVTAdditions) dvt_sharedServiceContext:] + 251
34 com.apple.dt.IDE.IDEiOSSupportCore 0x0000000117a954bc __42-[DVTiPhoneSimulatorLocator startLocating]_block_invoke_2 + 112
35 com.apple.dt.DVTFoundation 0x0000000101a9143e __DVTDispatchAsync_block_invoke + 801
36 libdispatch.dylib 0x00007fff734b85f8 _dispatch_call_block_and_release + 12
37 libdispatch.dylib 0x00007fff734b963d _dispatch_client_callout + 8
38 libdispatch.dylib 0x00007fff734bbde6 _dispatch_continuation_pop + 414
39 libdispatch.dylib 0x00007fff734bb4a3 _dispatch_async_redirect_invoke + 703
40 libdispatch.dylib 0x00007fff734c73bc _dispatch_root_queue_drain + 324
41 libdispatch.dylib 0x00007fff734c7b46 _dispatch_worker_thread2 + 90
42 libsystem_pthread.dylib 0x00007fff736f96b3 _pthread_wqthread + 583
43 libsystem_pthread.dylib 0x00007fff736f93fd start_wqthread + 13
Thread 6:
0 libsystem_pthread.dylib 0x00007fff736f93f0 start_wqthread + 0
Thread 7:
0 libsystem_pthread.dylib 0x00007fff736f93f0 start_wqthread + 0
Thread 8:
0 libsystem_pthread.dylib 0x00007fff736f93f0 start_wqthread + 0
Thread 9:
0 libsystem_kernel.dylib 0x00007fff7363b22a mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff7363b76c mach_msg + 60
2 com.apple.CoreFoundation 0x00007fff4751446d __CFRunLoopServiceMachPort + 327
3 com.apple.CoreFoundation 0x00007fff475139da __CFRunLoopRun + 1619
4 com.apple.CoreFoundation 0x00007fff47513135 CFRunLoopRunSpecific + 459
5 com.apple.Foundation 0x00007fff4979532f -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 280
6 com.apple.DTDeviceKitBase 0x0000000117b82de1 +[DTDKRemoteDeviceConnection startServiceBrowsers] + 217
7 com.apple.Foundation 0x00007fff4978b112 __NSThread__start__ + 1194
8 libsystem_pthread.dylib 0x00007fff736fa2eb _pthread_body + 126
9 libsystem_pthread.dylib 0x00007fff736fd249 _pthread_start + 66
10 libsystem_pthread.dylib 0x00007fff736f940d thread_start + 13
Thread 10:
0 libsystem_kernel.dylib 0x00007fff7363b22a mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff7363b76c mach_msg + 60
2 com.apple.CoreFoundation 0x00007fff4751446d __CFRunLoopServiceMachPort + 327
3 com.apple.CoreFoundation 0x00007fff475139da __CFRunLoopRun + 1619
4 com.apple.CoreFoundation 0x00007fff47513135 CFRunLoopRunSpecific + 459
5 com.apple.Foundation 0x00007fff4979532f -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 280
6 com.apple.DTDeviceKitBase 0x0000000117b90c5d -[DTDKRemoteDeviceDataListener listenerThreadImplementation] + 791
7 com.apple.Foundation 0x00007fff4978b112 __NSThread__start__ + 1194
8 libsystem_pthread.dylib 0x00007fff736fa2eb _pthread_body + 126
9 libsystem_pthread.dylib 0x00007fff736fd249 _pthread_start + 66
10 libsystem_pthread.dylib 0x00007fff736f940d thread_start + 13
Thread 11:: com.apple.CFSocket.private
0 libsystem_kernel.dylib 0x00007fff7364261a __select + 10
1 com.apple.CoreFoundation 0x00007fff47541988 __CFSocketManager + 630
2 libsystem_pthread.dylib 0x00007fff736fa2eb _pthread_body + 126
3 libsystem_pthread.dylib 0x00007fff736fd249 _pthread_start + 66
4 libsystem_pthread.dylib 0x00007fff736f940d thread_start + 13
Thread 12:
0 libsystem_kernel.dylib 0x00007fff7363ef32 __semwait_signal + 10
1 libsystem_c.dylib 0x00007fff735ca914 nanosleep + 199
2 com.apple.CoreSymbolicationDT 0x00000001045076c8 cleaner_thread_main(void*) + 41
3 libsystem_pthread.dylib 0x00007fff736fa2eb _pthread_body + 126
4 libsystem_pthread.dylib 0x00007fff736fd249 _pthread_start + 66
5 libsystem_pthread.dylib 0x00007fff736f940d thread_start + 13
Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x0000000000000000 rbx: 0x00000001072285c0 rcx: 0x00007ffeee437028 rdx: 0x0000000000000000
rdi: 0x0000000000000307 rsi: 0x0000000000000006 rbp: 0x00007ffeee437060 rsp: 0x00007ffeee437028
r8: 0x0000000103d4ff60 r9: 0x0000000103b5e56c r10: 0x0000000000000000 r11: 0x0000000000000206
r12: 0x0000000000000307 r13: 0x0000000000000000 r14: 0x0000000000000006 r15: 0x000000000000002d
rip: 0x00007fff736412c6 rfl: 0x0000000000000206 cr2: 0x00007fffa9b0d188
Logical CPU: 0
Error Code: 0x02000148
Trap Number: 133
Binary Images:
(omitted)
External Modification Summary:
Calls made by other processes targeting this process:
task_for_pid: 0
thread_create: 0
thread_set_state: 0
Calls made by this process:
task_for_pid: 0
thread_create: 0
thread_set_state: 0
Calls made by all processes on this machine:
task_for_pid: 32019
thread_create: 0
thread_set_state: 0
VM Region Summary:
ReadOnly portion of Libraries: Total=847.6M resident=0K(0%) swapped_out_or_unallocated=847.6M(100%)
Writable regions: Total=147.7M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=147.7M(100%)
VIRTUAL REGION
REGION TYPE SIZE COUNT (non-coalesced)
=========== ======= =======
Accelerate framework 256K 1
Activity Tracing 256K 1
CG backing stores 224K 2
CoreImage 8K 2
CoreServices 3328K 1
CoreUI image data 52K 1
CoreUI image file 196K 3
Dispatch continuations 16.0M 1
Foundation 4K 1
Kernel Alloc Once 8K 1
MALLOC 109.9M 47
MALLOC guard page 32K 7
Memory Tag 242 12K 1
STACK GUARD 56.0M 13
Stack 14.1M 13
VM_ALLOCATE 80K 10
__DATA 74.8M 538
__FONT_DATA 4K 1
__LINKEDIT 289.4M 162
__TEXT 558.9M 522
__UNICODE 564K 1
mapped file 113.5M 23
shared memory 2680K 12
=========== ======= =======
TOTAL 1.2G 1364
Model: Macmini6,2, BootROM 280.0.0.0.0, 4 processors, Intel Core i7, 2.6 GHz, 16 GB, SMC 2.8f1
Graphics: kHW_IntelHD4000Item, Intel HD Graphics 4000, spdisplays_builtin
Memory Module: BANK 0/DIMM0, 8 GB, DDR3, 1600 MHz, 0x802C, 0x31364B544631473634485A2D314736453120
Memory Module: BANK 1/DIMM0, 8 GB, DDR3, 1600 MHz, 0x802C, 0x31364B544631473634485A2D314736453120
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x10E), Broadcom BCM43xx 1.0 (7.21.190.33 AirPortDriverBrcm4360-1325.2)
Bluetooth: Version 6.0.14d3, 3 services, 27 devices, 1 incoming serial ports
Network Service: Ethernet, Ethernet, en0
Serial ATA Device: Samsung SSD 860 PRO 512GB, 512.11 GB
Serial ATA Device: WDC WD20SPZX-00CRAT0, 2 TB
USB Device: USB 2.0 Bus
USB Device: Hub
USB Device: USB 2.0 Bus
USB Device: Hub
USB Device: Hub
USB Device: IR Receiver
USB Device: BRCM20702 Hub
USB Device: Bluetooth USB Host Controller
USB Device: USB 3.0 Bus
Thunderbolt Bus: Mac mini, Apple Inc., 23.4

Finding what causes Xcode 8.2 to crash while indexing an old project

I have an old objective-c project I haven't touch since 2013.
I have upgraded Xcode to the latest 8.2 version and reopened the project (with lots of warning).
By opening the project the indexing starts almost immediately, and then Xcode crashes after few seconds. This is the relevant (relevant to me) portion of the stack trace.
Crashed Thread: 18
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Application Specific Information:
ProductBuildVersion: 8C38
UNCAUGHT EXCEPTION (NSInvalidArgumentException): *** -[__NSArrayM insertObject:atIndex:]: object cannot be nil
UserInfo: (null)
Hints: None
Backtrace:
0 __exceptionPreprocess (in CoreFoundation)
1 DVTFailureHintExceptionPreprocessor (in DVTFoundation)
2 objc_exception_throw (in libobjc.A.dylib)
3 -[__NSArrayM insertObject:atIndex:] (in CoreFoundation)
4 -[XCCompilerSpecificationIBStoryboardLinker _outputNodesForInputNodes:withMacroExpansionScope:] (in DevToolsCore)
5 -[XCCompilerSpecificationIBStoryboardLinker doSpecialDependencySetupForCommand:withInputNodes:withMacroExpansionScope:] (in DevToolsCore)
6 -[XCCommandLineToolSpecification createCommandsforInputs:withMacroExpansionScope:] (in DevToolsCore)
7 -[PBXTargetBuildContext invokeTask:forInputs:withMacroExpansionScope:optionTable:] (in DevToolsCore)
8 -[XCDependencyGraphCreationContext invokeTask:forInputs:withMacroExpansionScope:optionTable:] (in DevToolsCore)
9 -[XCCompilerSpecification computeDependenciesForInputNodes:ofType:variant:architecture:outputDirectory:withMacroExpansionScope:] (in DevToolsCore)
10 -[XCBuildRuleDGSnapshot(DependencyGraphCreation) computeDependenciesForBuildFileReference:withOutputDirectory:parameterMacros:withMacroExpansionScope:] (in DevToolsCore)
11 -[XCSourcesBuildPhaseDGSnapshot(DependencyGraphCreation) _computeDependenciesForBuildFileReference:usingBuildRule:withMacroExpansionScope:processedPaths:] (in DevToolsCore)
12 -[XCSourcesBuildPhaseDGSnapshot(DependencyGraphCreation) computeDependenciesForBuildFileReference:usingBuildRule:withMacroExpansionScope:] (in DevToolsCore)
13 -[XCSourcesBuildPhaseDGSnapshot(DependencyGraphCreation) computeDependenciesForBuildFileReference:withMacroExpansionScope:] (in DevToolsCore)
14 -[XCBuildPhaseDGSnapshot(DependencyGraphCreation) computeDependenciesForAllBuildFileReferencesWithMacroExpansionScope:] (in DevToolsCore)
15 -[XCSourcesBuildPhaseDGSnapshot(DependencyGraphCreation) computeDependenciesForAllBuildFileReferencesWithMacroExpansionScope:] (in DevToolsCore)
16 -[XCSourcesBuildPhaseDGSnapshot(DependencyGraphCreation) computeDependenciesWithMacroExpansionScope:] (in DevToolsCore)
17 -[XCProductTypeSpecification computeDependenciesWithMacroExpansionScope:] (in DevToolsCore)
18 -[XCNativeTargetDGSnapshot(DependencyGraphCreation) computeDependenciesWithMacroExpansionScope:] (in DevToolsCore)
19 -[PBXTargetBuildContext createDependencyGraphWithTargetDGSnapshot:] (in DevToolsCore)
20 -[PBXTargetBuildContext(DependencyGraphEvents) dg_setTargetSnapshot:] (in DevToolsCore)
21 -[PBXTargetBuildContext(DependencyGraphEvents) processDependencyGraphEvents] (in DevToolsCore)
22 -[XCBlockQueue _processNextBlockInThreadSlotNumber:] (in DevToolsCore)
23 -[XCBlockQueue _processBlocksInThreadSlotNumber:] (in DevToolsCore)
24 __NSThread__start__ (in Foundation)
25 _pthread_body (in libsystem_pthread.dylib)
26 _pthread_body (in libsystem_pthread.dylib)
27 thread_start (in libsystem_pthread.dylib)
abort() called
Application Specific Signatures:
NSInvalidArgumentException
Application Specific Backtrace 1:
0 CoreFoundation 0x00007fffbc7ac0db __exceptionPreprocess + 171
1 DVTFoundation 0x00000001067b8772 DVTFailureHintExceptionPreprocessor + 194
2 libobjc.A.dylib 0x00007fffd143ea2a objc_exception_throw + 48
3 CoreFoundation 0x00007fffbc6c796d -[__NSArrayM insertObject:atIndex:] + 1389
4 DevToolsCore 0x00000001116337af -[XCCompilerSpecificationIBStoryboardLinker _outputNodesForInputNodes:withMacroExpansionScope:] + 662
5 DevToolsCore 0x0000000111634054 -[XCCompilerSpecificationIBStoryboardLinker doSpecialDependencySetupForCommand:withInputNodes:withMacroExpansionScope:] + 378
6 DevToolsCore 0x00000001114c24ab -[XCCommandLineToolSpecification createCommandsforInputs:withMacroExpansionScope:] + 6079
7 DevToolsCore 0x000000011144e0f0 -[PBXTargetBuildContext invokeTask:forInputs:withMacroExpansionScope:optionTable:] + 1890
8 DevToolsCore 0x000000011156cb26 -[XCDependencyGraphCreationContext invokeTask:forInputs:withMacroExpansionScope:optionTable:] + 109
9 DevToolsCore 0x00000001114cbc2e -[XCCompilerSpecification computeDependenciesForInputNodes:ofType:variant:architecture:outputDirectory:withMacroExpansionScope:] + 1767
10 DevToolsCore 0x00000001115b4f53 -[XCBuildRuleDGSnapshot(DependencyGraphCreation) computeDependenciesForBuildFileReference:withOutputDirectory:parameterMacros:withMacroExpansionScope:] + 3447
11 DevToolsCore 0x00000001115a5617 -[XCSourcesBuildPhaseDGSnapshot(DependencyGraphCreation) _computeDependenciesForBuildFileReference:usingBuildRule:withMacroExpansionScope:processedPaths:] + 3319
12 DevToolsCore 0x00000001115a7f43 -[XCSourcesBuildPhaseDGSnapshot(DependencyGraphCreation) computeDependenciesForBuildFileReference:usingBuildRule:withMacroExpansionScope:] + 137
13 DevToolsCore 0x00000001115a840a -[XCSourcesBuildPhaseDGSnapshot(DependencyGraphCreation) computeDependenciesForBuildFileReference:withMacroExpansionScope:] + 1179
14 DevToolsCore 0x0000000111592bde -[XCBuildPhaseDGSnapshot(DependencyGraphCreation) computeDependenciesForAllBuildFileReferencesWithMacroExpansionScope:] + 2581
15 DevToolsCore 0x00000001115ab2b3 -[XCSourcesBuildPhaseDGSnapshot(DependencyGraphCreation) computeDependenciesForAllBuildFileReferencesWithMacroExpansionScope:] + 65
16 DevToolsCore 0x00000001115ad676 -[XCSourcesBuildPhaseDGSnapshot(DependencyGraphCreation) computeDependenciesWithMacroExpansionScope:] + 9116
17 DevToolsCore 0x00000001114d1359 -[XCProductTypeSpecification computeDependenciesWithMacroExpansionScope:] + 2113
18 DevToolsCore 0x000000011158aa09 -[XCNativeTargetDGSnapshot(DependencyGraphCreation) computeDependenciesWithMacroExpansionScope:] + 4140
19 DevToolsCore 0x000000011144429a -[PBXTargetBuildContext createDependencyGraphWithTargetDGSnapshot:] + 4474
20 DevToolsCore 0x0000000111460cb3 -[PBXTargetBuildContext(DependencyGraphEvents) dg_setTargetSnapshot:] + 522
21 DevToolsCore 0x0000000111460336 -[PBXTargetBuildContext(DependencyGraphEvents) processDependencyGraphEvents] + 290
22 DevToolsCore 0x00000001114c764e -[XCBlockQueue _processNextBlockInThreadSlotNumber:] + 460
23 DevToolsCore 0x00000001114c79ea -[XCBlockQueue _processBlocksInThreadSlotNumber:] + 300
24 Foundation 0x00007fffbe165c6d __NSThread__start__ + 1243
25 libsystem_pthread.dylib 0x00007fffd1f37aab _pthread_body + 180
26 libsystem_pthread.dylib 0x00007fffd1f379f7 _pthread_body + 0
27 libsystem_pthread.dylib 0x00007fffd1f371fd thread_start + 13
and this is the thread that crashed, with little information given.
Thread 18 Crashed:
0 libsystem_kernel.dylib 0x00007fffd1e4edd6 __pthread_kill + 10
1 libsystem_pthread.dylib 0x00007fffd1f3a787 pthread_kill + 90
2 libsystem_c.dylib 0x00007fffd1db4420 abort + 129
3 com.apple.dt.IDEKit 0x0000000107e4562b +[IDEAssertionHandler _handleAssertionWithLogString:assertionSignature:assertionReason:extraBacktrace:] + 1466
4 com.apple.dt.IDEKit 0x0000000107e46bf7 -[IDEAssertionHandler handleUncaughtException:] + 1073
5 com.apple.dt.IDEKit 0x0000000107e46cc3 IDEHandleUncaughtException + 94
6 com.apple.CoreFoundation 0x00007fffbc829d89 __handleUncaughtException + 745
7 libobjc.A.dylib 0x00007fffd1440b85 _objc_terminate() + 94
8 libc++abi.dylib 0x00007fffd0933d69 std::__terminate(void (*)()) + 8
9 libc++abi.dylib 0x00007fffd09339f2 __cxa_rethrow + 99
10 libobjc.A.dylib 0x00007fffd143ef07 objc_exception_rethrow + 40
11 com.apple.Xcode.DevToolsCore 0x00000001114c78a9 -[XCBlockQueue _processNextBlockInThreadSlotNumber:] + 1063
12 com.apple.Xcode.DevToolsCore 0x00000001114c79ea -[XCBlockQueue _processBlocksInThreadSlotNumber:] + 300
13 com.apple.Foundation 0x00007fffbe165c6d __NSThread__start__ + 1243
14 libsystem_pthread.dylib 0x00007fffd1f37aab _pthread_body + 180
15 libsystem_pthread.dylib 0x00007fffd1f379f7 _pthread_start + 286
16 libsystem_pthread.dylib 0x00007fffd1f371fd thread_start + 13
These are the steps I have taken to solve the issue:
Disable automatic indexing.
defaults write com.apple.dt.XCode IDEIndexDisable 1
I have tried many things, including create the project again from scratch from git, or just clean derived data folder.
Then I spot this in the stack trace
XCCompilerSpecificationIBStoryboardLinker
so, in a desperate move, I have deleted the storyboard and added again with "add files". I have reenabled indexing and everything starts working again, no more crash.
The question is: what's wrong with my storyboard ? What is causing XCode to crash at indexing ?
From the threads below:
Xcode 6.1 crash on "Edit scheme"
https://forums.developer.apple.com/thread/19859
Try following may it will help:
1.
Try to switch your Mac OS language settings to English (System Preferences -> Language & Region), add English in Preferred Languages and set it to Primary.
2.
use command:
defaults delete com.apple.dt.Xcode
Right click on the file .xcworkspace > Show Package Contents
Delete the xcuserdata folder
And now Xcode will open the project workspace just fine.

XCode 8 crashes when opening a project EXC_CRASH (SIGABRT) and EXC_CORPSE_NOTIFY

Macos Sierra. Xcode 8. I can open some projects, but a particluar project causes XCode to crash on start. Every time.
Below is the first 200 lines of the xcode crash log. Any insight at all would be extremely helpful!
Process: Xcode [9299]
Path: /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 8.0 (11246)
Build Info: IDEFrameworks-11246000000000000~3
App Item ID: 497799835
App External ID: 818744938
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Xcode [9299]
User ID: 501
Date/Time: 2016-09-20 22:54:14.003 +0200
OS Version: Mac OS X 10.12 (16A323)
Report Version: 12
Anonymous UUID: 65E7F980-9736-1A76-7A57-2CFD2AFC0DA7
Sleep/Wake UUID: 3D0C2E4A-A630-4295-8244-634B1C62A726
Time Awake Since Boot: 3100 seconds
Time Since Wake: 2600 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:
MainQueue: __42-[IBPlatformToolRequester processRequests]_block_invoke.235
ProductBuildVersion: 8A218a
ASSERTION FAILURE in /Library/Caches/com.apple.xbs/Sources/IDEInterfaceBuilder/IDEInterfaceBuilder-11201/Foundation/Utilities/IBFoundationAdditions.m:581
Details: The input arrays must have the same length: (null), (
"<NSImage 0x7f84520e5290 Size={60, 60} Reps=(\n \"<NSCGImageSnapshotRep:0x7f8453027960 cgImage=<CGImage 0x7f8452053500>\\n\\t<<CGColorSpace 0x7f8448d3bfa0> (kCGColorSpaceICCBased; kCGColorSpaceModelRGB; sRGB IEC61966-2.1)>\\n\\t\\twidth = 60, height = 60, bpc = 8, bpp = 32, row bytes = 240 \\n\\t\\tkCGImageAlphaPremultipliedFirst | kCGImageByteOrder32Little \\n\\t\\tis mask? No, has mask? No, has matte? No, should interpolate? No>\"\n)>"
)
Function: void IBEnumerateParallelArrays(NSArray *__strong, NSArray *__strong, __strong IBParallelArrayIterator)
Thread: <NSThread: 0x7f8448d16230>{number = 1, name = main}
Hints: None
Backtrace:
0 -[IDEAssertionHandler handleFailureInFunction:fileName:lineNumber:assertionSignature:messageFormat:arguments:] (in IDEKit)
1 _DVTAssertionHandler (in DVTFoundation)
2 _DVTAssertionFailureHandler (in DVTFoundation)
3 IBEnumerateParallelArrays (in IBFoundation)
4 0x0000000122585775 (in IDEInterfaceBuilderCocoaTouchIntegration)
5 0x0000000122583bfc (in IDEInterfaceBuilderCocoaTouchIntegration)
6 -[IBSceneUpdateProcessingRequest processResult:orError:] (in IBAutolayoutFoundation)
7 -[IBSceneUpdateProcessingRequestGroup processProcessingResultsFromSceneUpdateResult:orDeliverError:] (in IBAutolayoutFoundation)
8 __37-[IBSceneUpdateManager _updateScene:]_block_invoke.401 (in IDEInterfaceBuilderKit)
9 -[IBPlatformToolRequest runCompletionBlock] (in IDEInterfaceBuilderKit)
10 -[IBPlatformToolRequester processResults] (in IDEInterfaceBuilderKit)
11 ___DVTAsyncPerformBlockOnMainRunLoop_block_invoke (in DVTFoundation)
12 __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ (in CoreFoundation)
13 __CFRunLoopDoBlocks (in CoreFoundation)
14 __CFRunLoopRun (in CoreFoundation)
15 CFRunLoopRunSpecific (in CoreFoundation)
16 RunCurrentEventLoopInMode (in HIToolbox)
17 ReceiveNextEventCommon (in HIToolbox)
18 _BlockUntilNextEventMatchingListInModeWithFilter (in HIToolbox)
19 _DPSNextEvent (in AppKit)
20 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] (in AppKit)
21 -[DVTApplication nextEventMatchingMask:untilDate:inMode:dequeue:] (in DVTKit)
22 -[NSApplication run] (in AppKit)
23 NSApplicationMain (in AppKit)
24 start (in libdyld.dylib)
abort() called
Application Specific Signatures:
[arrayA count] == [arrayB count]
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x00007fffba0d7dda __pthread_kill + 10
1 libsystem_pthread.dylib 0x00007fffba1c2797 pthread_kill + 90
2 libsystem_c.dylib 0x00007fffba03d440 abort + 129
3 com.apple.dt.IDEKit 0x000000010ffe4c9d +[IDEAssertionHandler _handleAssertionWithLogString:assertionSignature:assertionReason:extraBacktrace:] + 1466
4 com.apple.dt.IDEKit 0x000000010ffe5809 -[IDEAssertionHandler handleFailureInFunction:fileName:lineNumber:assertionSignature:messageFormat:arguments:] + 1087
5 com.apple.dt.DVTFoundation 0x000000010e9555ac _DVTAssertionHandler + 475
6 com.apple.dt.DVTFoundation 0x000000010e955808 _DVTAssertionFailureHandler + 411
7 com.apple.dt.IBFoundation 0x00000001197a5a6b IBEnumerateParallelArrays + 609
8 com.apple.dt.IDE.IDEInterfaceBuilderCocoaTouchIntegration 0x0000000122585775 0x1224a7000 + 911221
9 com.apple.dt.IDE.IDEInterfaceBuilderCocoaTouchIntegration 0x0000000122583bfc 0x1224a7000 + 904188
10 com.apple.dt.IBAutolayoutFoundation 0x0000000118bc539e -[IBSceneUpdateProcessingRequest processResult:orError:] + 127
11 com.apple.dt.IBAutolayoutFoundation 0x0000000118c16cb1 -[IBSceneUpdateProcessingRequestGroup processProcessingResultsFromSceneUpdateResult:orDeliverError:] + 823
12 com.apple.dt.IDE.IDEInterfaceBuilderKit 0x0000000121cbb17c __37-[IBSceneUpdateManager _updateScene:]_block_invoke.401 + 1554
13 com.apple.dt.IDE.IDEInterfaceBuilderKit 0x0000000121b01917 -[IBPlatformToolRequest runCompletionBlock] + 453
14 com.apple.dt.IDE.IDEInterfaceBuilderKit 0x0000000121b02e98 -[IBPlatformToolRequester processResults] + 823
15 com.apple.dt.DVTFoundation 0x000000010e9aaf12 ___DVTAsyncPerformBlockOnMainRunLoop_block_invoke + 175
16 com.apple.CoreFoundation 0x00007fffa4f893ac __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 12
17 com.apple.CoreFoundation 0x00007fffa4f6a424 __CFRunLoopDoBlocks + 356
18 com.apple.CoreFoundation 0x00007fffa4f69ba5 __CFRunLoopRun + 917
19 com.apple.CoreFoundation 0x00007fffa4f695b4 CFRunLoopRunSpecific + 420
20 com.apple.HIToolbox 0x00007fffa450af6c RunCurrentEventLoopInMode + 240
21 com.apple.HIToolbox 0x00007fffa450aca9 ReceiveNextEventCommon + 184
22 com.apple.HIToolbox 0x00007fffa450abd6 _BlockUntilNextEventMatchingListInModeWithFilter + 71
23 com.apple.AppKit 0x00007fffa2c015f5 _DPSNextEvent + 1093
24 com.apple.AppKit 0x00007fffa33118eb -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1637
25 com.apple.dt.DVTKit 0x000000010ef010a8 -[DVTApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 396
26 com.apple.AppKit 0x00007fffa2bf5fbd -[NSApplication run] + 926
27 com.apple.AppKit 0x00007fffa2bc0a8a NSApplicationMain + 1237
28 libdyld.dylib 0x00007fffb9fa9255 start + 1
Thread 1:
0 libsystem_kernel.dylib 0x00007fffba0d84e6 __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fffba1bf7c5 _pthread_wqthread + 1426
2 libsystem_pthread.dylib 0x00007fffba1bf221 start_wqthread + 13
Thread 2:
0 libsystem_kernel.dylib 0x00007fffba0d84e6 __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fffba1bf7c5 _pthread_wqthread + 1426
2 libsystem_pthread.dylib 0x00007fffba1bf221 start_wqthread + 13
Thread 3:
0 libsystem_kernel.dylib 0x00007fffba0d84e6 __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fffba1bf7c5 _pthread_wqthread + 1426
2 libsystem_pthread.dylib 0x00007fffba1bf221 start_wqthread + 13
Thread 4:
0 libsystem_kernel.dylib 0x00007fffba0d041a mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fffba0cf867 mach_msg + 55
2 com.apple.CoreFoundation 0x00007fffa4f6a8d4 __CFRunLoopServiceMachPort + 212
3 com.apple.CoreFoundation 0x00007fffa4f69d61 __CFRunLoopRun + 1361
4 com.apple.CoreFoundation 0x00007fffa4f695b4 CFRunLoopRunSpecific + 420
5 com.apple.Foundation 0x00007fffa6966cb2 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 277
6 com.apple.DTDeviceKitBase 0x000000011a3a4317 -[DTDKRemoteDeviceDataListener listenerThreadImplementation] + 1063
7 com.apple.Foundation 0x00007fffa697730d __NSThread__start__ + 1243
8 libsystem_pthread.dylib 0x00007fffba1bfabb _pthread_body + 180
9 libsystem_pthread.dylib 0x00007fffba1bfa07 _pthread_start + 286
10 libsystem_pthread.dylib 0x00007fffba1bf231 thread_start + 13
Thread 5:: com.apple.CFSocket.private
0 libsystem_kernel.dylib 0x00007fffba0d7f4e __select + 10
1 com.apple.CoreFoundation 0x00007fffa4fa572a __CFSocketManager + 682
2 libsystem_pthread.dylib 0x00007fffba1bfabb _pthread_body + 180
3 libsystem_pthread.dylib 0x00007fffba1bfa07 _pthread_start + 286
4 libsystem_pthread.dylib 0x00007fffba1bf231 thread_start + 13
Thread 6:
0 libsystem_kernel.dylib 0x00007fffba0d7c8a __psynch_cvwait + 10
1 libsystem_pthread.dylib 0x00007fffba1c097a _pthread_cond_wait + 712
2 libc++.1.dylib 0x00007fffb8b4e58d std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 47
3 com.apple.JavaScriptCore 0x00007fffa7dc16dc void std::__1::condition_variable_any::wait<std::__1::unique_lock<bmalloc::Mutex> >(std::__1::unique_lock<bmalloc::Mutex>&) + 108
4 com.apple.JavaScriptCore 0x00007fffa7dc165b bmalloc::AsyncTask<bmalloc::Heap, void (bmalloc::Heap::*)()>::threadRunLoop() + 155
5 com.apple.JavaScriptCore 0x00007fffa7dc1529 bmalloc::AsyncTask<bmalloc::Heap, void (bmalloc::Heap::*)()>::threadEntryPoint(bmalloc::AsyncTask<bmalloc::Heap, void (bmalloc::Heap::*)()>*) + 9
6 com.apple.JavaScriptCore 0x00007fffa7dc17dd void* std::__1::__thread_proxy<std::__1::tuple<void (*)(bmalloc::AsyncTask<bmalloc::Heap, void (bmalloc::Heap::*)()>*), bmalloc::AsyncTask<bmalloc::Heap, void (bmalloc::Heap::*)()>*> >(void*) + 93
7 libsystem_pthread.dylib 0x00007fffba1bfabb _pthread_body + 180
8 libsystem_pthread.dylib 0x00007fffba1bfa07 _pthread_start + 286
9 libsystem_pthread.dylib 0x00007fffba1bf231 thread_start + 13
Thread 7:: com.apple.NSURLConnectionLoader
0 libsystem_kernel.dylib 0x00007fffba0d041a mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fffba0cf867 mach_msg + 55
2 com.apple.CoreFoundation 0x00007fffa4f6a8d4 __CFRunLoopServiceMachPort + 212
3 com.apple.CoreFoundation 0x00007fffa4f69d61 __CFRunLoopRun + 1361
4 com.apple.CoreFoundation 0x00007fffa4f695b4 CFRunLoopRunSpecific + 420
5 com.apple.CFNetwork 0x00007fffa413f144 +[NSURLConnection(Loader) _resourceLoadLoop:] + 313
6 com.apple.Foundation 0x00007fffa697730d __NSThread__start__ + 1243
7 libsystem_pthread.dylib 0x00007fffba1bfabb _pthread_body + 180
8 libsystem_pthread.dylib 0x00007fffba1bfa07 _pthread_start + 286
9 libsystem_pthread.dylib 0x00007fffba1bf231 thread_start + 13
Thread 8:: Dispatch queue: IDE Source Control File Path Processesing Queue
0 libsystem_kernel.dylib 0x00007fffba0d83b6 __ulock_wait + 10
1 libdispatch.dylib 0x00007fffb9f8ba8e _dispatch_ulock_wait + 40
2 libdispatch.dylib 0x00007fffb9f8bc6e _dispatch_thread_event_wait_slow + 85
3 libdispatch.dylib 0x00007fffb9f7e5ea _dispatch_barrier_sync_f_slow + 402
4 libdispatch.dylib 0x00007fffb9f7f10f _dispatch_barrier_sync_f_recurse + 75
5 com.apple.dt.DVTFoundation 0x000000010e9a7bcd DVTDispatchSync + 169
6 com.apple.dt.IDEFoundation 0x000000010f76d016 __60-[IDESourceControlWorkspaceMonitor _startScanningWorkspace:]_block_invoke_2 + 1345
7 com.apple.dt.DVTFoundation 0x000000010e9a7f4b __DVTDispatchAsync_block_invoke + 827
8 libdispatch.dylib 0x00007fffb9f7bf5f _dispatch_call_block_and_release + 12
9 libdispatch.dylib 0x00007fffb9f73128 _dispatch_client_callout + 8
10 libdispatch.dylib 0x00007fffb9f89b97 _dispatch_queue_serial_drain + 896
11 libdispatch.dylib 0x00007fffb9f7bd41 _dispatch_queue_invoke + 1046
12 libdispatch.dylib 0x00007fffb9f74ee0 _dispatch_root_queue_drain + 476
13 libdispatch.dylib 0x00007fffb9f74cb7 _dispatch_worker_thread3 + 99
14 libsystem_pthread.dylib 0x00007fffba1bf746 _pthread_wqthread + 1299
15 libsystem_pthread.dylib 0x00007fffba1bf221 start_wqthread + 13
Thread 9:: Dispatch queue: -[IDEExecutionEnvironment initWithWorkspaceArena:] :: NSOperation 0x7f8450c1abc0 (QOS: USER_INTERACTIVE)
0 libsystem_kernel.dylib 0x00007fffba0d7c8a __psynch_cvwait + 10
1 libsystem_pthread.dylib 0x00007fffba1c097a _pthread_cond_wait + 712
2 com.apple.Foundation 0x00007fffa6a3b9fe -[__NSOperationInternal _waitUntilFinished:] + 118
3 com.apple.Foundation 0x00007fffa6a0b92c -[NSOperationQueue waitUntilAllOperationsAreFinished] + 310
4 com.apple.dt.DVTFoundation 0x000000010e8536f9 -[DVTOperationGroup main] + 67
5 com.apple.Foundation 0x00007fffa6986d84 -[__NSOperationInternal _start:] + 672
6 com.apple.dt.DVTFoundation 0x000000010e8536ab -[DVTOperationGroup start] + 111
7 com.apple.Foundation 0x00007fffa6982c3b __NSOQSchedule_f + 201
8 libdispatch.dylib 0x00007fffb9f73128 _dispatch_client_callout + 8
9 libdispatch.dylib 0x00007fffb9f89b97 _dispatch_queue_serial_drain + 896
10 libdispatch.dylib 0x00007fffb9f7bd41 _dispatch_queue_invoke + 1046
11 libdispatch.dylib 0x00007fffb9f74ee0 _dispatch_root_queue_drain + 476
12 libdispatch.dylib 0x00007fffb9f74cb7 _dispatch_worker_thread3 + 99
13 libsystem_pthread.dylib 0x00007fffba1bf746 _pthread_wqthread + 1299
14 libsystem_pthread.dylib 0x00007fffba1bf221 start_wqthread + 13
Delete the .xcworkspace file.
run pod install again to recreate the .xcworkspace file.
worked for me.
Could you please try to delete content from ~/Library/Developer/Xcode/DerivedData
because your old application is referencing to other location.
I had the feeling this crash was caused by a .xib file which contained data no longer compatible with the new version of XCode. So I:
Removed half of the .xib file content
Saved the .xib file
Started XCode
If it still crashed, I proceeded to remove half of the data that remained. If it did not crash, I reasoned that the borked data must be in the other half. Repeated steps 1 to 3 until no more XCode crash.
This method worked. The following data was the cause of the crash in my .xib:
<navigationItem key="navigationItem" title="Custom Content" id="314">
<barButtonItem key="rightBarButtonItem" title="Edit" id="315">
<connections>
<action selector="editBookmarks:" destination="263" id="318"/>
</connections>
</barButtonItem>
</navigationItem>
I removed the <barButtonItem .../> element inside <navigationItem .../> and XCode did not crash anymore. Phew!
My conclusion is that barButtonItem used to be allowed inside navigationItem in an earlier version of Xcode, but the new version fails to migrate the content of the .xib and has no graceful way of warning, so it crashes hard.
If you get the same error as I did, check your xibs for barButtonItem nested inside navigationItem, delete them and add whatever was inside anew using the GUI.
If nested barButtonItem is not what's causing your crash you'll have to repeat my brute force method on your xibs until you single out the faulty xml code in your particular project. Best of luck!

How to solve "SpringBoard quit unexpected" issues on iOS with Xamarin?

How to resolve "SpringBoard quit unexpected" issues?
I don't use Test Cloud, would anyone be able to explain in detail what is happening?
Process: SpringBoard [7365] Path:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/CoreServices/SpringBoard.app/SpringBoard
Identifier: SpringBoard Version: 1.0 (50) Code Type: X86 (Native)
Parent Process: launchd_sim [7247] Responsible: launchd_sim [7247]
User ID: 501
Date/Time: 2015-07-12 18:27:14.767 +0700 OS Version: Mac OS X 10.10.4
(14E46) Report Version: 11 Anonymous UUID:
4F86C8E2-284F-6FD5-30D3-E2519C6D5409
Time Awake Since Boot: 36000 seconds
Crashed Thread: 8 Dispatch queue:
com.apple.frontboard.applicationLibrary.taskQueue
Exception Type: EXC_CRASH (SIGABRT) Exception Codes:
0x0000000000000000, 0x0000000000000000
Application Specific Information:
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Application is required.'
terminating with uncaught exception of type NSException abort() called
CoreSimulator 110.4 - Device: iPhone 4s - Runtime: iOS 8.1 (12B411) -
DeviceType: iPhone 4s
Application Specific Backtrace 1: 0 CoreFoundation 0x0821c946
exceptionPreprocess + 182 1 libobjc.A.dylib 0x07cffa97
objc_exception_throw + 44 2 CoreFoundation 0x0821c7da +[NSException
raise:format:arguments:] + 138 3 Foundation 0x04059810
-[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 118 4
FrontBoard 0x01d09b66 __47-[FBApplicationLibrary
applicationsDidInstall:]block_invoke_2 + 335 5 FrontBoard 0x01d0998f
__47-[FBApplicationLibrary applicationsDidInstall:]_block_invoke + 1784 6 libdispatch.dylib 0x087f303f _dispatch_client_callout + 14 7
libdispatch.dylib 0x087dadb8 _dispatch_barrier_sync_f_invoke + 79 8
libdispatch.dylib 0x087da8ea dispatch_barrier_sync_f + 105 9
libdispatch.dylib 0x087dae40 dispatch_barrier_sync + 54 10 FrontBoard
0x01d091ca -[FBApplicationLibrary applicationsDidInstall:] + 292 11
MobileCoreServices 0x060e5ce9 -[LSApplicationWorkspaceRemoteObserver
applicationsDidInstall:] + 233 12 CoreFoundation 0x080ff76d __invoking
+ 29 13 CoreFoundation 0x080ff618 -[NSInvocation invoke] + 360 14 Foundation 0x041913fd
NSXPCCONNECTION_IS_CALLING_OUT_TO_EXPORTED_OBJECT + 30 15 Foundation
0x0401f568 -[NSXPCConnection _decodeAndInvokeMessageWithData:] + 1881
16 Foundation 0x0401bbb5 message_handler + 721 17 Foundation
0x0401b8cd __51-[NSXPCConnection
initWithMachServiceName:options:]_block_invoke + 20 18 libxpc.dylib
0x08ac1973 _xpc_connection_call_event_handler + 65 19 libxpc.dylib
0x08ac1779 _xpc_connection_mach_event + 2278 20 libdispatch.dylib
0x087f3121 _dispatch_client_callout4 + 37 21 libdispatch.dylib
0x087e35a9 _dispatch_mach_msg_invoke + 318 22 libdispatch.dylib
0x087dbc1b _dispatch_queue_drain + 527 23 libdispatch.dylib 0x087e3ab7
_dispatch_mach_invoke + 225 24 libdispatch.dylib 0x087dbc1b _dispatch_queue_drain + 527 25 libdispatch.dylib 0x087db8ac _dispatch_queue_invoke + 197 26 libdispatch.dylib 0x087dd9e7 _dispatch_root_queue_drain + 367 27 libdispatch.dylib 0x087de985 _dispatch_worker_thread3 + 108 28 libsystem_pthread.dylib 0x08b491da _pthread_wqthread + 724 29 libsystem_pthread.dylib 0x08b46e2e start_wqthread + 30
Thread 0:: Dispatch queue: com.apple.main-thread 0
libsystem_kernel.dylib 0x08b169ce mach_msg_trap + 10 1
libsystem_kernel.dylib 0x08b15a70 mach_msg + 68 2
com.apple.CoreFoundation 0x08136026 __CFRunLoopServiceMachPort + 214 3
com.apple.CoreFoundation 0x08135408 __CFRunLoopRun + 1400 4
com.apple.CoreFoundation 0x08134bcb CFRunLoopRunSpecific + 443 5
com.apple.CoreFoundation 0x081349fb CFRunLoopRunInMode + 123 6
com.apple.GraphicsServices 0x043ef24f GSEventRunModal + 192 7
com.apple.GraphicsServices 0x043ef08c GSEventRun + 104 8
com.apple.UIKit 0x0096d8b6 UIApplicationMain + 1526 9
com.apple.springboard 0x0007e4b0 0x76000 + 33968 10 libdyld.dylib
0x08819ac9 start + 1
Thread 1:: Dispatch queue: com.apple.libdispatch-manager 0
libsystem_kernel.dylib 0x08b1d8ce kevent64 + 10 1 libdispatch.dylib
0x087e23be _dispatch_mgr_invoke + 245 2 libdispatch.dylib 0x087e2116
_dispatch_mgr_thread + 60
Thread 2: 0 libsystem_kernel.dylib 0x08b169ce mach_msg_trap + 10 1
libsystem_kernel.dylib 0x08b15a70 mach_msg + 68 2
com.apple.CoreFoundation 0x08136026 CFRunLoopServiceMachPort + 214 3
com.apple.CoreFoundation 0x08135408 __CFRunLoopRun + 1400 4
com.apple.CoreFoundation 0x08134bcb CFRunLoopRunSpecific + 443 5
com.apple.CoreFoundation 0x081349fb CFRunLoopRunInMode + 123 6
com.apple.Foundation 0x03fecd98 -[NSRunLoop(NSRunLoop)
runMode:beforeDate:] + 309 7 com.apple.Foundation 0x0408c67b
-[NSRunLoop(NSRunLoop) run] + 82 8 com.apple.UIKit 0x00ea982b -[UIStatusBarServerThread main] + 796 9 com.apple.Foundation 0x03feae60 __NSThread__main + 1326 10 libsystem_pthread.dylib
0x08b48e13 _pthread_body + 138 11 libsystem_pthread.dylib 0x08b48d89
_pthread_start + 162 12 libsystem_pthread.dylib 0x08b46e52 thread_start + 34
Thread 3: 0 libsystem_kernel.dylib 0x08b169ce mach_msg_trap + 10 1
libsystem_kernel.dylib 0x08b15a70 mach_msg + 68 2
com.apple.CoreFoundation 0x08136026 __CFRunLoopServiceMachPort + 214 3
com.apple.CoreFoundation 0x08135408 __CFRunLoopRun + 1400 4
com.apple.CoreFoundation 0x08134bcb CFRunLoopRunSpecific + 443 5
com.apple.CoreFoundation 0x081349fb CFRunLoopRunInMode + 123 6
com.apple.springboard 0x000f5592 0x76000 + 521618 7
libsystem_pthread.dylib 0x08b48e13 _pthread_body + 138 8
libsystem_pthread.dylib 0x08b48d89 _pthread_start + 162 9
libsystem_pthread.dylib 0x08b46e52 thread_start + 34xamarin.
I'm finding it impossible to solve.

Having trouble getting Xcode app to compile

I have the following error when I am building my app
I keep getting the same message again and again. Not sure what to do now.
Check dependencies
Internal error occurred while creating dependency graph: ASSERTION FAILURE in /SourceCache/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-931/Xcode3Sources/XcodeIDE/Frameworks/DevToolsBase/pbxcore/Target.subproj/XCCodeSignContext.m:1237
Details: Error: failed to locate ResourceRules.plist in '/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.0.sdk/ResourceRules.plist' or '/Developer/Platforms/iPhoneOS.platform/ResourceRules.plist'
Object: <XCiPhoneOSCodeSignContext>
Method: +defineCodeSignAuxiliaryFilesInTargetBuildContext:
Thread: <NSThread: 0x403d5dfc0>{name = (null), num = 15}
Backtrace:
0 0x00000001137a39ac -[PBXTargetBuildContext(DependencyGraphEvents) handleFailureInMethod:object:fileName:lineNumber:messageFormat:arguments:] (in DevToolsCore)
1 0x000000010f6546a4 _DVTAssertionFailureHandler (in DVTFoundation)
2 0x000000011387c80a +[XCCodeSignContext defineCodeSignAuxiliaryFilesInTargetBuildContext:] (in DevToolsCore)
3 0x00000001137f4c10 -[XCProductTypeSpecification computeDependenciesInTargetBuildContext:] (in DevToolsCore)
4 0x0000000113884a42 -[XCNativeTargetDGSnapshot(DependencyGraphCreation) computeDependenciesInTargetBuildContext:] (in DevToolsCore)
5 0x000000011379326d -[PBXTargetBuildContext createDependencyGraphWithTargetDGSnapshot:] (in DevToolsCore)
6 0x00000001137a4a2e -[PBXTargetBuildContext(DependencyGraphEvents) dg_setTargetSnapshot:] (in DevToolsCore)
7 0x00007fff9700120c __invoking___ (in CoreFoundation)
8 0x00007fff970010a4 -[NSInvocation invoke] (in CoreFoundation)
9 0x00000001137a3df1 -[PBXTargetBuildContext(DependencyGraphEvents) processDependencyGraphEvents] (in DevToolsCore)
10 0x00007fff9700120c __invoking___ (in CoreFoundation)
11 0x00007fff970010a4 -[NSInvocation invoke] (in CoreFoundation)
12 0x00000001137ed296 -[XCInvocationQueue _processNextInvocationInThreadSlotNumber:] (in DevToolsCore)
13 0x00000001137ed6a0 -[XCInvocationQueue _processInvocationsInThreadSlotNumber:] (in DevToolsCore)
14 0x00007fff919f37fe -[NSThread main] (in Foundation)
15 0x00007fff919f3776 __NSThread__main__ (in Foundation)
16 0x00007fff965958bf _pthread_start (in libsystem_c.dylib)
17 0x00007fff96598b75 thread_start (in libsystem_c.dylib)
(null)
(
0 CoreFoundation 0x00007fff9700f286 __exceptionPreprocess + 198
1 libobjc.A.dylib 0x00007fff8de79d5e objc_exception_throw + 43
2 CoreFoundation 0x00007fff970994c9 -[NSException raise] + 9
3 DVTFoundation 0x000000010f6546a4 _DVTAssertionFailureHandler + 110
4 DevToolsCore 0x000000011387c80a +[XCCodeSignContext defineCodeSignAuxiliaryFilesInTargetBuildContext:] + 2120
5 DevToolsCore 0x00000001137f4c10 -[XCProductTypeSpecification computeDependenciesInTargetBuildContext:] + 656
6 DevToolsCore 0x0000000113884a42 -[XCNativeTargetDGSnapshot(DependencyGraphCreation) computeDependenciesInTargetBuildContext:] + 3744
7 DevToolsCore 0x000000011379326d -[PBXTargetBuildContext createDependencyGraphWithTargetDGSnapshot:] + 4889
8 DevToolsCore 0x00000001137a4a2e -[PBXTargetBuildContext(DependencyGraphEvents) dg_setTargetSnapshot:] + 460
9 CoreFoundation 0x00007fff9700120c __invoking___ + 140
10 CoreFoundation 0x00007fff970010a4 -[NSInvocation invoke] + 132
11 DevToolsCore 0x00000001137a3df1 -[PBXTargetBuildContext(DependencyGraphEvents) processDependencyGraphEvents] + 594
12 CoreFoundation 0x00007fff9700120c __invoking___ + 140
13 CoreFoundation 0x00007fff970010a4 -[NSInvocation invoke] + 132
14 DevToolsCore 0x00000001137ed296 -[XCInvocationQueue _processNextInvocationInThreadSlotNumber:] + 388
15 DevToolsCore 0x00000001137ed6a0 -[XCInvocationQueue _processInvocationsInThreadSlotNumber:] + 510
16 Foundation 0x00007fff919f37fe -[NSThread main] + 68
17 Foundation 0x00007fff919f3776 __NSThread__main__ + 1575
18 libsystem_c.dylib 0x00007fff965958bf _pthread_start + 335
19 libsystem_c.dylib 0x00007fff96598b75 thread_start + 13
)
For some reason, the files were missing. I reinstalled Xcode from the AppStore and it started working again.
I have no idea how the files were missing.

Resources