Xcode crashes with assertion error in DVTNSArrayAdditions - xcode

This happens no matter what project I open, whether it's for iOS or Mac. I've reviewed other causes listed on SO and elsewhere, and have eliminated anything to do with repositories, bad certificates, project.xcworkspace and com.apple.dt.Xcode.*. This only happens when I open a project. I can view the organizer without a problem.
Any help would be appreciated.
Here is the error:
Process: Xcode [3904]
Path: /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 4.3.2 (1177)
Build Info: IDEApplication-1177000000000000~6
App Item ID: 497799835
App External ID: 7171108
Code Type: X86-64 (Native)
Parent Process: launchd [124]
Date/Time: 2012-04-25 14:25:53.522 -0400
OS Version: Mac OS X 10.7.3 (11D50b)
Report Version: 9
Sleep/Wake UUID: 918AC06B-8025-41D9-A37F-809262E52D1C
Interval Since Last Report: 135670 sec
Crashes Since Last Report: 10
Per-App Interval Since Last Report: 33821 sec
Per-App Crashes Since Last Report: 10
Anonymous UUID: 78350ED9-1E4E-47B3-BFA2-60CDC279B7DB
Crashed Thread: 24
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Application Specific Information:
ProductBuildVersion: 4E2002
UNCAUGHT EXCEPTION (NSInternalInconsistencyException): ASSERTION FAILURE in /SourceCache/DVTFoundation/DVTFoundation-1193/Framework/Classes/FoundationClassCategories/DVTNSArrayAdditions.m:207
Details: Assertion failed: object != ((void*)0)
Object: <__NSArrayM: 0x4028cd680>
Method: -dvt_addObjectIfAbsent:
Thread: <NSThread: 0x4023dfe00>{name = (null), num = 16}
Backtrace:
0 0x0000000107f5cc8f -[PBXTargetBuildContext(DependencyGraphEvents) handleFailureInMethod:object:fileName:lineNumber:messageFormat:arguments:] (in DevToolsCore)
1 0x0000000104f9b635 _DVTAssertionFailureHandler (in DVTFoundation)
2 0x0000000104f30e78 -[NSMutableArray(DVTFoundationClassAdditions) dvt_addObjectIfAbsent:] (in DVTFoundation)
3 0x0000000104f7136f -[DVTSDK commandLineToolSearchPath] (in DVTFoundation)
4 0x0000000107f9e9e4 -[XCCommandLineToolSpecification findExecutable:inTargetBuildContext:] (in DevToolsCore)
5 0x0000000107f6e876 -[PBXCompilerSpecificationGcc executablePathInTargetBuildContext:forLanguageDialect:] (in DevToolsCore)
6 0x0000000107f6e92e -[PBXCompilerSpecificationGcc discoveredCompilerDriverInfoInBuildContext:forLanguageDialect:] (in DevToolsCore)
7 0x0000000107f732ab -[PBXCompilerSpecificationGcc2_95_2 compileSourceCodeFileAtPath:ofType:toOutputDirectory:inTargetBuildContext:] (in DevToolsCore)
8 0x0000000108049a27 -[XCCompilerSpecificationClang compileSourceCodeFileAtPath:ofType:toOutputDirectory:inTargetBuildContext:] (in DevToolsCore)
9 0x0000000107f71a33 -[PBXCompilerSpecificationGcc computeDependenciesForInputNodes:ofType:variant:architecture:outputDirectory:inTargetBuildContext:] (in DevToolsCore)
10 0x0000000107fa525b -[XCCompilerSpecification computeDependenciesForFilePath:ofType:outputDirectory:inTargetBuildContext:] (in DevToolsCore)
11 0x000000010803f84e -[XCBuildRuleDGSnapshot(DependencyGraphCreation) computeDependenciesForFilePath:ofType:forBuildFileReference:withOutputDirectory:additionalProperties:inTargetBuildContext:] (in DevToolsCore)
12 0x0000000108038647 -[XCSourcesBuildPhaseDGSnapshot(DependencyGraphCreation) _computeDependenciesForFilePath:ofType:forBuildFileReference:usingBuildRule:inTargetBuildContext:processedPaths:] (in DevToolsCore)
13 0x0000000108038d25 -[XCSourcesBuildPhaseDGSnapshot(DependencyGraphCreation) computeDependenciesForFilePath:ofType:forBuildFileReference:usingBuildRule:inTargetBuildContext:] (in DevToolsCore)
14 0x00000001080392c3 -[XCSourcesBuildPhaseDGSnapshot(DependencyGraphCreation) computeDependenciesForBuildFileReference:inTargetBuildContext:] (in DevToolsCore)
15 0x000000010802dc0c -[XCBuildPhaseDGSnapshot(DependencyGraphCreation) computeDependenciesForAllBuildFileReferencesInTargetBuildContext:] (in DevToolsCore)
16 0x000000010803aab0 -[XCSourcesBuildPhaseDGSnapshot(DependencyGraphCreation) computeDependenciesForAllBuildFileReferencesInTargetBuildContext:] (in DevToolsCore)
17 0x000000010803b450 -[XCSourcesBuildPhaseDGSnapshot(DependencyGraphCreation) computeDependenciesInTargetBuildContext:] (in DevToolsCore)
18 0x0000000107fa811e -[XCProductTypeSpecification computeDependenciesInTargetBuildContext:] (in DevToolsCore)
19 0x00000001080294d3 -[XCNativeTargetDGSnapshot(DependencyGraphCreation) computeDependenciesInTargetBuildContext:] (in DevToolsCore)
20 0x0000000107f4bf81 -[PBXTargetBuildContext createDependencyGraphWithTargetDGSnapshot:] (in DevToolsCore)
21 0x0000000107f5dc15 -[PBXTargetBuildContext(DependencyGraphEvents) dg_setTargetSnapshot:] (in DevToolsCore)
22 0x00007fff899daf4c __invoking___ (in CoreFoundation)
23 0x00007fff899dade4 -[NSInvocation invoke] (in CoreFoundation)
24 0x0000000107f5d010 -[PBXTargetBuildContext(DependencyGraphEvents) processDependencyGraphEvents] (in DevToolsCore)
25 0x00007fff899daf4c __invoking___ (in CoreFoundation)
26 0x00007fff899dade4 -[NSInvocation invoke] (in CoreFoundation)
27 0x0000000107fa07e1 -[XCInvocationQueue _processNextInvocationInThreadSlotNumber:] (in DevToolsCore)
28 0x0000000107fa0c48 -[XCInvocationQueue _processInvocationsInThreadSlotNumber:] (in DevToolsCore)
29 0x00007fff88db774e -[NSThread main] (in Foundation)
30 0x00007fff88db76c6 __NSThread__main__ (in Foundation)
31 0x00007fff8edc08bf _pthread_start (in libsystem_c.dylib)
32 0x00007fff8edc3b75 thread_start (in libsystem_c.dylib)
UserInfo: (null)
Hints: None
Backtrace:
0 0x00007fff899e8faa __exceptionPreprocess (in CoreFoundation)
1 0x00007fff8f537d5e objc_exception_throw (in libobjc.A.dylib)
2 0x00007fff89a732a9 -[NSException raise] (in CoreFoundation)
3 0x0000000104f9b635 _DVTAssertionFailureHandler (in DVTFoundation)
4 0x0000000104f30e78 -[NSMutableArray(DVTFoundationClassAdditions) dvt_addObjectIfAbsent:] (in DVTFoundation)
5 0x0000000104f7136f -[DVTSDK commandLineToolSearchPath] (in DVTFoundation)
6 0x0000000107f9e9e4 -[XCCommandLineToolSpecification findExecutable:inTargetBuildContext:] (in DevToolsCore)
7 0x0000000107f6e876 -[PBXCompilerSpecificationGcc executablePathInTargetBuildContext:forLanguageDialect:] (in DevToolsCore)
8 0x0000000107f6e92e -[PBXCompilerSpecificationGcc discoveredCompilerDriverInfoInBuildContext:forLanguageDialect:] (in DevToolsCore)
9 0x0000000107f732ab -[PBXCompilerSpecificationGcc2_95_2 compileSourceCodeFileAtPath:ofType:toOutputDirectory:inTargetBuildContext:] (in DevToolsCore)
10 0x0000000108049a27 -[XCCompilerSpecificationClang compileSourceCodeFileAtPath:ofType:toOutputDirectory:inTargetBuildContext:] (in DevToolsCore)
11 0x0000000107f71a33 -[PBXCompilerSpecificationGcc computeDependenciesForInputNodes:ofType:variant:architecture:outputDirectory:inTargetBuildContext:] (in DevToolsCore)
12 0x0000000107fa525b -[XCCompilerSpecification computeDependenciesForFilePath:ofType:outputDirectory:inTargetBuildContext:] (in DevToolsCore)
13 0x000000010803f84e -[XCBuildRuleDGSnapshot(DependencyGraphCreation) computeDependenciesForFilePath:ofType:forBuildFileReference:withOutputDirectory:additionalProperties:inTargetBuildContext:] (in DevToolsCore)
14 0x0000000108038647 -[XCSourcesBuildPhaseDGSnapshot(DependencyGraphCreation) _computeDependenciesForFilePath:ofType:forBuildFileReference:usingBuildRule:inTargetBuildContext:processedPaths:] (in DevToolsCore)
15 0x0000000108038d25 -[XCSourcesBuildPhaseDGSnapshot(DependencyGraphCreation) computeDependenciesForFilePath:ofType:forBuildFileReference:usingBuildRule:inTargetBuildContext:] (in DevToolsCore)
16 0x00000001080392c3 -[XCSourcesBuildPhaseDGSnapshot(DependencyGraphCreation) computeDependenciesForBuildFileReference:inTargetBuildContext:] (in DevToolsCore)
17 0x000000010802dc0c -[XCBuildPhaseDGSnapshot(DependencyGraphCreation) computeDependenciesForAllBuildFileReferencesInTargetBuildContext:] (in DevToolsCore)
18 0x000000010803aab0 -[XCSourcesBuildPhaseDGSnapshot(DependencyGraphCreation) computeDependenciesForAllBuildFileReferencesInTargetBuildContext:] (in DevToolsCore)
19 0x000000010803b450 -[XCSourcesBuildPhaseDGSnapshot(DependencyGraphCreation) computeDependenciesInTargetBuildContext:] (in DevToolsCore)
20 0x0000000107fa811e -[XCProductTypeSpecification computeDependenciesInTargetBuildContext:] (in DevToolsCore)
21 0x00000001080294d3 -[XCNativeTargetDGSnapshot(DependencyGraphCreation) computeDependenciesInTargetBuildContext:] (in DevToolsCore)
22 0x0000000107f4bf81 -[PBXTargetBuildContext createDependencyGraphWithTargetDGSnapshot:] (in DevToolsCore)
23 0x0000000107f5dc15 -[PBXTargetBuildContext(DependencyGraphEvents) dg_setTargetSnapshot:] (in DevToolsCore)
24 0x00007fff899daf4c __invoking___ (in CoreFoundation)
25 0x00007fff899dade4 -[NSInvocation invoke] (in CoreFoundation)
26 0x0000000107f5d010 -[PBXTargetBuildContext(DependencyGraphEvents) processDependencyGraphEvents] (in DevToolsCore)
27 0x00007fff899daf4c __invoking___ (in CoreFoundation)
28 0x00007fff899dade4 -[NSInvocation invoke] (in CoreFoundation)
29 0x0000000107fa07e1 -[XCInvocationQueue _processNextInvocationInThreadSlotNumber:] (in DevToolsCore)
30 0x0000000107fa0c48 -[XCInvocationQueue _processInvocationsInThreadSlotNumber:] (in DevToolsCore)
31 0x00007fff88db774e -[NSThread main] (in Foundation)
32 0x00007fff88db76c6 __NSThread__main__ (in Foundation)
33 0x00007fff8edc08bf _pthread_start (in libsystem_c.dylib)
34 0x00007fff8edc3b75 thread_start (in libsystem_c.dylib)
objc[3904]: garbage collection is ON
abort() called

Uninstalling Xcode 4.3 by dragging the icon to the trash and reinstalling from the Mac App Store fixed the problem.
Weird.
Edited to add: shortly after this whole thing happened, my hard drive went belly-up. So, it appears this was likely related not to anything Xcodey, but rather to my own failing hard drive. Lesson: backup if you get this error, it may be an indicator of something Really Bad.

Related

How can I stop Xcode crashing when notarising an application?

My application works. It passes its unit tests, it passes its user acceptance tests, it doesn't even have too many warnings about deprecations (just one or two). So now I'd like to release it - and I want to have it notarised. Unfortunately, when I notarise Xcode quits 'unexpectedly' - although by now it's crashed so many times that I'm amazed the crash catches my Mac by surprise.
The only 'oddities' about my application are that it uses the Sparkle framework and Libcrypto.
I'm building on a 16GB M1 Mac Mini. The steps to reproduce the error are:
Distribute App
Developer ID
Upload
either Automatically manage signing or Manually manage signing
… I see Communicating with Apple - and then Boom! It dies.
Has anyone else seen a problem like this? How did you solve it?
The error log I get starts as follows:
Path: /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 13.0 (19234)
Build Info: IDEFrameworks-19234000000000000~16 (13A233)
Code Type: ARM-64 (Native)
Parent Process: ??? [1]
Responsible: Xcode [2640]
User ID: 501
Date/Time: 2021-09-20 20:26:00.540 +0100
OS Version: macOS 11.4 (20F71)
Report Version: 12
Anonymous UUID: EC195B68-B7C5-BD3E-C8A4-C886AAA00F1F
Sleep/Wake UUID: 15FE8E7D-4A3E-430C-9948-F60EFBD2D434
Time Awake Since Boot: 7000 seconds
Time Since Wake: 3000 seconds
System Integrity Protection: enabled
Crashed Thread: 15 Dispatch queue: ConcurrentQueue: -[IDEDistributionPackagingStepViewController viewDidInstall]_block_invoke
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Application Specific Information:
ProductBuildVersion: 13A233
ASSERTION FAILURE in /Library/Caches/com.apple.xbs/Sources/DVTFrameworks/DVTFrameworks-19207/DVTFoundation/FilePaths/DVTFilePath.m:908
Details: str should be a string, but it is nil
Object: <DVTFilePath>
Method: +filePathForPathString:
Thread: <NSThread: 0x2eb098e80>{number = 114, name = (null)}
Open FDs: 70/7168
Hints:
0: Calling block provided by:
0 DVTDispatchAsync (in DVTFoundation)
1 DVTAsyncPerformBlock (in DVTFoundation)
2 -[IDEDistributionPackagingStepViewController viewDidInstall] (in IDEKit)
3 -[DVTViewController _viewDidInstall] (in DVTViewControllerKit)
4 -[_DVTViewController_ViewLifecycleInterpositions viewDidMoveToWindow] (in DVTViewControllerKit)
5 -[NSView _setWindow:] (in AppKit)
6 -[NSView addSubview:] (in AppKit)
7 -[NSView setSubviews:] (in AppKit)
8 -[DVTBorderedView setContentView:] (in DVTUserInterfaceKit)
9 -[IDEDistributionAssistantWindowController setDistributionStepViewController:] (in IDEKit)
10 -[NSObject(NSKeyValueObservingPrivate) _changeValueForKeys:count:maybeOldValuesDict:maybeNewValuesDict:usingBlock:] (in Foundation)
11 -[NSObject(NSKeyValueObservingPrivate) _changeValueForKey:key:key:usingBlock:] (in Foundation)
12 _NSSetObjectValueAndNotify (in Foundation)
13 -[IDEDistributionAssistantWindowController next:] (in IDEKit)
14 __79-[IDEDistributionAutomaticSigningAssetsStepViewController _locateSigningAssets]_block_invoke_2 (in IDEKit)
15 __DVT_CALLING_CLIENT_BLOCK__ (in DVTFoundation)
16 ___DVTAsyncPerformBlockOnMainRunLoop_block_invoke (in DVTFoundation)
17 __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ (in CoreFoundation)
18 __CFRunLoopDoBlocks (in CoreFoundation)
19 __CFRunLoopRun (in CoreFoundation)
20 CFRunLoopRunSpecific (in CoreFoundation)
21 RunCurrentEventLoopInMode (in HIToolbox)
22 ReceiveNextEventCommon (in HIToolbox)
23 _BlockUntilNextEventMatchingListInModeWithFilter (in HIToolbox)
24 _DPSNextEvent (in AppKit)
25 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] (in AppKit)
26 -[DVTApplication nextEventMatchingMask:untilDate:inMode:dequeue:] (in DVTKit)
27 -[NSApplication run] (in AppKit)
28 -[DVTApplication run] (in DVTKit)
29 NSApplicationMain (in AppKit)
30 start (in libdyld.dylib)
Backtrace:
0 -[IDEAssertionHandler handleFailureInMethod:object:fileName:lineNumber:assertionSignature:messageFormat:arguments:] (in IDEKit)
1 _DVTAssertionHandler (in DVTFoundation)
2 _DVTAssertionFailureHandler (in DVTFoundation)
3 +[DVTFilePath filePathForPathString:] (in DVTFoundation)
4 -[NSBundle(DVTOnDemandResourcesAdditions) pathForAssetPackManifest] (in DVTFoundation)
5 -[IDEDistributionODRStep processAppAtPath:destinationPath:isAppStoreBound:baseURL:assetPackManifestPath:includeODRAssetPackInBundle:error:] (in IDEFoundation)
6 -[IDEDistributionODRStep runWithError:] (in IDEFoundation)
7 -[IDEDistributionProcessingPipeline process:] (in IDEFoundation)
8 -[IDEDistributionPackagingStepViewController _runPipeline] (in IDEKit)
9 __60-[IDEDistributionPackagingStepViewController viewDidInstall]_block_invoke_2 (in IDEKit)
10 __DVT_CALLING_CLIENT_BLOCK__ (in DVTFoundation)
11 __DVTDispatchAsync_block_invoke (in DVTFoundation)
12 _dispatch_call_block_and_release (in libdispatch.dylib)
13 _dispatch_client_callout (in libdispatch.dylib)
14 _dispatch_continuation_pop (in libdispatch.dylib)
15 _dispatch_async_redirect_invoke (in libdispatch.dylib)
16 _dispatch_root_queue_drain (in libdispatch.dylib)
17 _dispatch_worker_thread2 (in libdispatch.dylib)
18 _pthread_wqthread (in libsystem_pthread.dylib)
19 start_wqthread (in libsystem_pthread.dylib)

Xcode 10.1 crashes on open due to detailAccentColor unrecognised

So today while opening Xcode (Version 10.1 (10B61)) it installed some additional packages (unfortunately I don't know what). Then when it came to opening anything (existing project, creating a new project, creating playground) it crashed with error as posted below.
I tried reinstalling Xcode, but the same error occurred.
I'm using MacOS Mojave (version 10.14 (18A314k))
And finally an error:
Process: Xcode [2163]
Path: /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 10.1 (14460.46)
Build Info: IDEFrameworks_Fall2018-14460046000000000~5
App Item ID: 497799835
App External ID: 828917606
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Xcode [2163]
User ID: 501
Date/Time: 2018-11-09 10:45:32.879 +0100
OS Version: Mac OS X 10.14 (18A314k)
Report Version: 12
Bridge OS Version: 3.0 (14Y664)
Anonymous UUID: 4A06F9DE-9B81-BB53-A130-5A43E3077DDF
Time Awake Since Boot: 5700 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:
Sending newPlayground: to <IDEApplicationCommands: 0x7ffea209fb20> from (null)
ProductBuildVersion: 10B61
UNCAUGHT EXCEPTION (NSInvalidArgumentException): +[NSColor detailAccentColor]: unrecognized selector sent to class 0x7fff9fa73e28
UserInfo: (null)
Hints:
0: Sending newPlayground: to <IDEApplicationCommands: 0x7ffea209fb20> from (null)
1: Sending createNewPlayground: to <IDEWelcomeWindowController: 0x7ffea123e380> from <IDEWelcomeWindowHighlightButton: 0x7ffea13f21a0>
Backtrace:
0 __exceptionPreprocess (in CoreFoundation)
1 DVTFailureHintExceptionPreprocessor (in DVTFoundation)
2 objc_exception_throw (in libobjc.A.dylib)
3 +[NSObject(NSObject) doesNotRecognizeSelector:] (in CoreFoundation)
4 ___forwarding___ (in CoreFoundation)
5 _CF_forwarding_prep_0 (in CoreFoundation)
6 -[DVTTheme activityViewDeterminateProgessIndicatorColor] (in DVTKit)
7 -[IDEActivityProgressIndicatorLayer _updateProgressLayerColor] (in IDEKit)
8 -[IDEActivityProgressIndicatorLayer reflectStyle] (in IDEKit)
9 -[IDEActivityProgressIndicatorLayer setupLayers] (in IDEKit)
10 -[IDEActivityProgressIndicatorLayer init] (in IDEKit)
11 -[IDEActivityReportLayer init] (in IDEKit)
12 +[IDEActivityReportLayer activityReportLayerForDisplayStyle:] (in IDEKit)
13 -[IDEActivityView _buildReportLayerTree] (in IDEKit)
14 -[IDEActivityView setupLayers] (in IDEKit)
15 -[IDEActivityView setup] (in IDEKit)
16 -[IDEActivityView setupOrTearDown] (in IDEKit)
17 -[NSView _setWindow:] (in AppKit)
18 -[NSView addSubview:] (in AppKit)
19 -[NSToolbarItemViewer configureForLayoutInDisplayMode:andSizeMode:inToolbarView:] (in AppKit)
20 -[NSToolbarView _layoutDirtyItemViewersAndTileToolbar] (in AppKit)
21 -[NSToolbarView _syncItemSetAndUpdateItemViewersWithSEL:setNeedsModeConfiguration:sizeToFit:setNeedsDisplay:updateKeyLoop:] (in AppKit)
22 -[NSToolbarView _noteToolbarLayoutChanged] (in AppKit)
23 -[NSView _setWindow:] (in AppKit)
24 -[NSView addSubview:] (in AppKit)
25 -[NSTitlebarView addSubview:] (in AppKit)
26 -[NSThemeFrame addTitlebarSubview:] (in AppKit)
27 -[NSThemeFrame _showHideToolbar:resizeWindow:animate:] (in AppKit)
28 -[NSWindow _showToolbar:animate:] (in AppKit)
29 -[NSToolbar _show:animate:] (in AppKit)
30 -[NSWindow setToolbar:] (in AppKit)
31 -[NSWindow(IBNSToolbarFixes) ibSwizzledSetToolbar:] (in IDEInterfaceBuilderCocoaIntegration)
32 +[IDEToolbarManager insertToolbarForToolbarDefinitionIdentifier:inWindow:] (in IDEKit)
33 __45-[IDEWorkspaceWindowController windowDidLoad]_block_invoke (in IDEKit)
34 -[NSObject(DVTObservingConvenience) _dvt_newObserverForKeyPath:options:owner:creationBacktrace:withHandlerBlock:] (in DVTFoundation)
35 -[NSObject(DVTObservingConvenience) dvt_newObserverForKeyPath:options:withHandlerBlock:] (in DVTFoundation)
36 -[IDEWorkspaceWindowController windowDidLoad] (in IDEKit)
37 -[NSWindowController _windowDidLoad] (in AppKit)
38 -[NSWindowController window] (in AppKit)
39 -[IDEDocumentController _openUntitledWorkspaceDocumentAndDisplay:simpleFilesFocused:forSingleFile:editorDocumentURLOrNil:error:] (in IDEKit)
40 -[IDEApplicationCommands newTemplateForTemplateKind:template:] (in IDEKit)
41 -[IDEApplicationCommands newTemplateSkippingChooserIfPossibleForTemplateKind:] (in IDEKit)
42 -[IDEApplicationCommands newPlayground:] (in IDEKit)
43 -[NSApplication(NSResponder) sendAction:to:from:] (in AppKit)
44 __37-[DVTApplication sendAction:to:from:]_block_invoke.99 (in DVTKit)
45 DVTInvokeWithFailureHint (in DVTFoundation)
46 -[DVTApplication sendAction:to:from:] (in DVTKit)
47 +[IDECommandManager sendActionForCommandWithIdentifier:from:] (in IDEKit)
48 -[NSApplication(NSResponder) sendAction:to:from:] (in AppKit)
49 __37-[DVTApplication sendAction:to:from:]_block_invoke.99 (in DVTKit)
50 DVTInvokeWithFailureHint (in DVTFoundation)
51 -[DVTApplication sendAction:to:from:] (in DVTKit)
52 -[NSControl sendAction:to:] (in AppKit)
53 __26-[NSCell _sendActionFrom:]_block_invoke (in AppKit)
54 -[NSCell _sendActionFrom:] (in AppKit)
55 -[NSButtonCell _sendActionFrom:] (in AppKit)
56 -[NSCell trackMouse:inRect:ofView:untilMouseUp:] (in AppKit)
57 -[NSButtonCell trackMouse:inRect:ofView:untilMouseUp:] (in AppKit)
58 -[NSControl mouseDown:] (in AppKit)
59 -[NSWindow(NSEventRouting) _handleMouseDownEvent:isDelayedEvent:] (in AppKit)
60 -[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:] (in AppKit)
61 -[NSWindow(NSEventRouting) sendEvent:] (in AppKit)
62 -[NSApplication(NSEvent) sendEvent:] (in AppKit)
63 -[IDEApplication sendEvent:] (in IDEKit)
64 -[NSApplication run] (in AppKit)
65 NSApplicationMain (in AppKit)
66 main (in Xcode)
67 start (in libdyld.dylib)
abort() called
Application Specific Signatures:
NSInvalidArgumentException
I ran into the same issue, It's crashing on launch of Xcode App after that I updated the OS to the latest version.
Due to below issue
+[NSColor detailAccentColor]: unrecognized selector sent to class 0x7fff9fa73e28
Download the latest OS from below link
https://itunes.apple.com/in/app/macos-mojave/id1398502828?mt=12

Xcode 8.1 & 8.2.1 crashes on startup

This just started happening while I writing some (iOS) code in XCode. Looks to be part of the IDE. crash log says the IDE had a NSRangeException. Any ideas how to find the problem or reset so I go back?
I've cleared the derived data for this project and launched Xcode again. It shows for a second and then crashes. When I go look at the derived data folder it looks like Xcode started to create the /index/debug/iphonesimulator10.1-x86_64/.xcindex/db.xcindexdb... files and then crashed during that process. So might have something to do with the simulator which I did have running at the time of first crash, but I was not using it.
I tried rolling back to a previous version of project.pbxproj and still having the same crash issue. And Xcode only crashes on this project. I can open others fine.
UPDATE: I upgraded to Xcode 8.2.1 and still having the same issue. I am used Pods and so that means I'm using a workspace. Not sure if this is causing any problems.
Here's the lovely crash report.
Process: Xcode [835]
Path: /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 8.1 (11544)
Build Info: IDEFrameworks-11544000000000000~4
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Xcode [835]
User ID: 501
Date/Time: 2017-01-24 21:22:55.528 -0800
OS Version: Mac OS X 10.12.1 (16B2555)
Report Version: 12
Anonymous UUID: xxx
Time Awake Since Boot: 610 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: 8B62
UNCAUGHT EXCEPTION (NSRangeException): *** -[__NSArrayM objectAtIndex:]: index 3 beyond bounds [0 .. 2]
UserInfo: (null)
Hints:
0: Creation Backtrace for Notification Token:
0 -[_DVTNotificationReceiver initWithBlock:queue:] (in DVTFoundation)
1 -[NSNotificationCenter(DVTNSNotificationCenterAdditions) dvt_addObserverForName:object:queue:usingBlock:] (in DVTFoundation)
2 -[_IDENavigatorOutlineViewDataSource setRootItems:] (in IDEKit)
3 -[IDENavigatorOutlineView _updateRootItems:sortDescriptors:] (in IDEKit)
4 -[IDENavigatorOutlineView setRootItems:] (in IDEKit)
5 -[IDENavigatorOutlineView _updateBoundContentArrayOrSet] (in IDEKit)
6 -[IDENavigatorOutlineView updateBoundContentArray] (in IDEKit)
7 -[NSObject(DVTBindingUtilities) updateBoundValueForBinding:] (in DVTKit)
8 -[DVTBindingHelper observeValueForKeyPath:ofObject:change:context:] (in DVTKit)
9 NSKeyValueNotifyObserver (in Foundation)
10 NSKeyValueDidChange (in Foundation)
11 -[NSObject(NSKeyValueObservingPrivate) _changeValueForKeys:count:maybeOldValuesDict:usingBlock:] (in Foundation)
12 -[NSObject(NSKeyValueObservingPrivate) _changeValueForKey:key:key:usingBlock:] (in Foundation)
13 _NSSetObjectValueAndNotify (in Foundation)
14 -[IDEBatchFindNavigator updateScopeItems:] (in IDEKit)
15 __44-[IDEBatchFindNavigator setupLocationPicker]_block_invoke_2 (in IDEKit)
16 -[NSObject(DVTObservingConvenience) _dvt_newObserverForKeyPath:options:owner:creationBacktrace:withHandlerBlock:] (in DVTFoundation)
17 -[NSObject(DVTObservingConvenience) dvt_newObserverForKeyPath:options:withHandlerBlock:] (in DVTFoundation)
18 -[IDEBatchFindNavigator setupLocationPicker] (in IDEKit)
19 -[IDEBatchFindNavigator viewDidInstall] (in IDEKit)
20 -[DVTViewController _viewDidInstall] (in DVTKit)
21 -[_DVTViewController_ViewLifecycleInterpositions viewDidMoveToWindow] (in DVTKit)
22 -[NSView _setWindow:] (in AppKit)
23 -[NSView addSubview:] (in AppKit)
24 __42-[DVTReplacementView _setupViewController]_block_invoke (in DVTKit)
25 DVTInvokeWithFailureHint (in DVTFoundation)
26 -[DVTReplacementView _setupViewController] (in DVTKit)
27 -[DVTReplacementView installedViewController] (in DVTKit)
28 -[DVTReplacementView layoutTopDown] (in DVTKit)
29 -[DVTLayoutView_ML _reallyLayoutIfNeededTopDown] (in DVTKit)
30 +[DVTLayoutView_ML _doRecursivelyLayoutSubviewsOfView:populatingSetWithLaidOutViews:completionCallBackHandlers:currentLayoutPass:needsSecondPass:] (in DVTKit)
31 +[DVTLayoutView_ML _doRecursivelyLayoutSubviewsOfView:populatingSetWithLaidOutViews:completionCallBackHandlers:currentLayoutPass:needsSecondPass:] (in DVTKit)
32 +[DVTLayoutView_ML _doRecursivelyLayoutSubviewsOfView:populatingSetWithLaidOutViews:completionCallBackHandlers:currentLayoutPass:needsSecondPass:] (in DVTKit)
33 +[DVTLayoutView_ML _doRecursivelyLayoutSubviewsOfView:populatingSetWithLaidOutViews:completionCallBackHandlers:currentLayoutPass:needsSecondPass:] (in DVTKit)
34 +[DVTLayoutView_ML _doRecursivelyLayoutSubviewsOfView:populatingSetWithLaidOutViews:completionCallBackHandlers:currentLayoutPass:needsSecondPass:] (in DVTKit)
35 +[DVTLayoutView_ML _doRecursivelyLayoutSubviewsOfView:populatingSetWithLaidOutViews:completionCallBackHandlers:currentLayoutPass:needsSecondPass:] (in DVTKit)
36 +[DVTLayoutView_ML _recursivelyLayoutSubviewsOfView:populatingSetWithLaidOutViews:] (in DVTKit)
37 -[DVTLayoutView_ML viewWillDraw] (in DVTKit)
38 -[NSView(NSInternal) _sendViewWillDraw] (in AppKit)
39 -[NSView viewWillDraw] (in AppKit)
40 -[NSView(NSInternal) _sendViewWillDraw] (in AppKit)
41 -[NSView viewWillDraw] (in AppKit)
42 -[NSView(NSInternal) _sendViewWillDraw] (in AppKit)
43 -[NSView viewWillDraw] (in AppKit)
44 -[NSView(NSInternal) _sendViewWillDraw] (in AppKit)
45 -[NSView _sendViewWillDrawInRect:clipRootView:] (in AppKit)
46 -[NSView displayIfNeeded] (in AppKit)
47 -[NSWindow displayIfNeeded] (in AppKit)
48 ___NSWindowGetDisplayCycleObserver_block_invoke.6219 (in AppKit)
49 __37+[NSDisplayCycle currentDisplayCycle]_block_invoke (in AppKit)
50 CA::Transaction::run_commit_handlers(CATransactionPhase) (in QuartzCore)
51 CA::Context::commit_transaction(CA::Transaction*) (in QuartzCore)
52 CA::Transaction::commit() (in QuartzCore)
53 __37+[NSDisplayCycle currentDisplayCycle]_block_invoke.31 (in AppKit)
54 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ (in CoreFoundation)
55 __CFRunLoopDoObservers (in CoreFoundation)
56 __CFRunLoopRun (in CoreFoundation)
57 CFRunLoopRunSpecific (in CoreFoundation)
58 RunCurrentEventLoopInMode (in HIToolbox)
59 ReceiveNextEventCommon (in HIToolbox)
60 _BlockUntilNextEventMatchingListInModeWithFilter (in HIToolbox)
61 _DPSNextEvent (in AppKit)
62 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] (in AppKit)
63 -[DVTApplication nextEventMatchingMask:untilDate:inMode:dequeue:] (in DVTKit)
64 -[NSApplication run] (in AppKit)
65 NSApplicationMain (in AppKit)
66 start (in libdyld.dylib)
Backtrace:
0 __exceptionPreprocess (in CoreFoundation)
1 DVTFailureHintExceptionPreprocessor (in DVTFoundation)
2 objc_exception_throw (in libobjc.A.dylib)
3 -[__NSArrayM objectAtIndex:] (in CoreFoundation)
4 -[_IDENavigatorOutlineViewDataSource outlineView:child:ofItem:] (in IDEKit)
5 refreshRowEntryItemAndLevelInfo (in AppKit)
6 -[NSOutlineView reloadItem:reloadChildren:] (in AppKit)
7 -[IDENavigatorOutlineView reloadItem:reloadChildren:] (in IDEKit)
8 __83-[_IDENavigatorOutlineViewDataSource _processNavigableItemGraphChangeNotification:]_block_invoke.735 (in IDEKit)
9 +[NSAnimationContext(DVTNSAnimationContextAdditions) dvt_nonAnimatedBlock:] (in DVTKit)
10 -[IDENavigatorOutlineView suspendEditingWhilePerformingBlock:] (in IDEKit)
11 -[_IDENavigatorOutlineViewDataSource _processNavigableItemGraphChangeNotification:] (in IDEKit)
12 DVTInvokeWithLazyFailureHint (in DVTFoundation)
13 __48-[_DVTNotificationReceiver receiveNotification:]_block_invoke.42 (in DVTFoundation)
14 -[_DVTNotificationReceiver receiveNotification:] (in DVTFoundation)
15 __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ (in CoreFoundation)
16 _CFXRegistrationPost (in CoreFoundation)
17 ___CFXNotificationPost_block_invoke (in CoreFoundation)
18 -[_CFXNotificationRegistrar find:object:observer:enumerator:] (in CoreFoundation)
19 _CFXNotificationPost (in CoreFoundation)
20 -[NSNotificationCenter postNotificationName:object:userInfo:] (in Foundation)
21 -[NSNotificationCenter(DVTNSNotificationCenterAdditions) _dvt_postNotificationName:object:userInfo:] (in DVTFoundation)
22 -[IDENavigableItemCoordinator _postNotificationNamed:forChangedItems:] (in IDEKit)
23 -[IDENavigableItemCoordinator _delayedPostGraphAndPropertyChangeNotifications] (in IDEKit)
24 __48-[DVTDelayedInvocation initWithTarget:selector:]_block_invoke (in DVTFoundation)
25 -[DVTDelayedInvocation runBlock:] (in DVTFoundation)
26 __NSFirePerformWithOrder (in Foundation)
27 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ (in CoreFoundation)
28 __CFRunLoopDoObservers (in CoreFoundation)
29 __CFRunLoopRun (in CoreFoundation)
30 CFRunLoopRunSpecific (in CoreFoundation)
31 RunCurrentEventLoopInMode (in HIToolbox)
32 ReceiveNextEventCommon (in HIToolbox)
33 _BlockUntilNextEventMatchingListInModeWithFilter (in HIToolbox)
34 _DPSNextEvent (in AppKit)
35 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] (in AppKit)
36 -[DVTApplication nextEventMatchingMask:untilDate:inMode:dequeue:] (in DVTKit)
37 -[NSApplication run] (in AppKit)
38 NSApplicationMain (in AppKit)
39 start (in libdyld.dylib)
abort() called
If I delete the "build" folder in my Xcode project folder then start Xcode it works! (rather then derived data folder in the Xcode user library folder.)
Right click on the file .xcworkspace > Show Package Contents
Delete the xcuserdata folder
Ref:
https://apple.stackexchange.com/a/271128/230590
May be you could update your Xcode to the latest version ie: 8.2.1 . :)

Xcode 5.1.1 and Xcode 6.1 crash on create new Project /File/Workspace on Yosemite 10.10.2

Xcode 5.1.1 and Xcode 6.1 crash on create new Project /File/Workspace on Yosemite 10.10.2
Please suggest to fix this issue
Bug Report
process: Xcode [2792]
Path: /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 5.1.1 (5085)
Build Info: IDEFrameworks-5085000000000000~10
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Xcode [2792]
User ID: 501
Date/Time: 2015-01-11 22:07:07.203 +0530
OS Version: Mac OS X 10.10.2 (14C94b)
Report Version: 11
Anonymous UUID: C09A26EF-E9EA-9CD0-E670-228AA19E0BA7`
Time Awake Since Boot: 13000 seconds
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Application Specific Information:
Sending goNextOrFinish: to <IDEAssistantWindowController: 0x7fd6b61dcdf0> from <NSButton :0x7fd6b61c24d0>
ProductBuildVersion: 5B1008
UNCAUGHT EXCEPTION (NSInvalidArgumentException): *** setObjectForKey: object cannot be nil (key: sortColumn)
UserInfo: (null)
Hints:
0: Sending goNextOrFinish: to <IDEAssistantWindowController: 0x7fd6b61dcdf0> from <NSButton: 0x7fd6b61c24d0>
Backtrace:
0 0x00007fff91a14654 __exceptionPreprocess (in CoreFoundation)
1 0x000000010e6ecb10 DVTFailureHintExceptionPreprocessor (in DVTFoundation)
2 0x00007fff9361976e objc_exception_throw (in libobjc.A.dylib)
3 0x00007fff918fc876 -[__NSDictionaryM setObject:forKey:] (in CoreFoundation)
4 0x00007fff8f89478e -[FI_TNodeViewSettings setListViewSortColumn:] (in FinderKit)
5 0x00007fff8f890d0e -[FI_TNodeViewSettings refreshListViewSettings] (in FinderKit)
6 0x00007fff8f8911bb -[FI_TNodeViewSettings refreshSettings:] (in FinderKit)
7 0x00007fff8f8914c4 -[FI_TNodeViewSettings initWithNode:] (in FinderKit)
8 0x00007fff8f88fc56 +[FI_TNodeViewSettings settingsForNode:] (in FinderKit)
9 0x00007fff8f93204c -[FI_TBrowserContainerController nodeViewSettings] (in FinderKit)
10 0x00007fff8f9317ed -[FI_TBrowserContainerController initWithWindowState:targetPath:containerDelegate:] (in FinderKit)
11 0x00007fff8f8bd13e -[FIFinderViewGutsController _internalSetTargetPath:withViewStyle:] (in FinderKit)
12 0x00007fff8f8b8e8b -[FIFinderViewGutsController forceContainerToExist] (in FinderKit)
13 0x00007fff8f8b98ff -[FIFinderViewGutsController prepareToShow] (in FinderKit)
14 0x00007fff8f8c278e -[FIFinderView viewWillMoveToWindow:] (in FinderKit)
15 0x00007fff8d322b2e -[NSView _setWindow:] (in AppKit)
16 0x00007fff91935385 __53-[__NSArrayM enumerateObjectsWithOptions:usingBlock:]_block_invoke (in CoreFoundation)
17 0x00007fff91934a89 -[__NSArrayM enumerateObjectsWithOptions:usingBlock:] (in CoreFoundation)
18 0x00007fff8da139c4 __21-[NSView _setWindow:]_block_invoke733 (in AppKit)
19 0x00007fff8d323693 -[NSView _setWindow:] (in AppKit)
20 0x00007fff8d3209e3 -[NSView addSubview:] (in AppKit)
21 0x00007fff8d66d82a -[NSBox setContentView:] (in AppKit)
22 0x00007fff8d8c76b5 -[NSSavePanel(NSSavePanelLayout) _layoutViewsVerticallyAndResizeWindowToLastExpandedSize:accessoryViewHeight:] (in AppKit)
23 0x00007fff8d8b27b0 -[NSSavePanel _initPanelCommon] (in AppKit)
24 0x00007fff8d8b1afa -[NSSavePanel initWithContentRect:styleMask:backing:defer:] (in AppKit)
25 0x00007fff8d8b0fd9 +[NSSavePanel _crunchyRawUnbonedPanel] (in AppKit)
26 0x000000010f9a36ee -[IDETemplateCompletionAssistant configuredOpenPanel] (in IDEKit)
27 0x00000001163b7be3 -[Xcode3ProjectTemplateCompletionAssistant configuredSavePanel] (in Xcode3UI)
28 0x000000010f9a38db -[IDETemplateCompletionAssistant beginSheetModalForWindow:] (in IDEKit)
29 0x000000010f9a3d96 -[IDETemplateCompletionAssistant finishWithCompletionBlock:] (in IDEKit)
30 0x000000010f7f9c63 -[IDEAssistantWindowController goNextOrFinish:] (in IDEKit)
31 0x00007fff90c89cd7 _os_activity_initiate (in libsystem_trace.dylib)
32 0x00007fff8d4da541 -[NSApplication sendAction:to:from:] (in AppKit)
33 0x000000010ec50f85 __37-[DVTApplication sendAction:to:from:]_block_invoke (in DVTKit)
34 0x000000010e6ec842 DVTInvokeWithFailureHint (in DVTFoundation)
35 0x000000010eb1eb0e -[DVTApplication sendAction:to:from:] (in DVTKit)
36 0x00007fff8d4da340 -[NSControl sendAction:to:] (in AppKit)
37 0x00007fff8d6b014b __26-[NSCell _sendActionFrom:]_block_invoke (in AppKit)
38 0x00007fff90c89cd7 _os_activity_initiate (in libsystem_trace.dylib)
39 0x00007fff8d522ec8 -[NSCell _sendActionFrom:] (in AppKit)
40 0x00007fff90c89cd7 _os_activity_initiate (in libsystem_trace.dylib)
41 0x00007fff8d53d9a5 -[NSCell trackMouse:inRect:ofView:untilMouseUp:] (in AppKit)
42 0x00007fff8d53cbd9 -[NSButtonCell trackMouse:inRect:ofView:untilMouseUp:] (in AppKit)
43 0x00007fff8d53c1b9 -[NSControl mouseDown:] (in AppKit)
44 0x00007fff8da3a2b1 -[NSWindow _reallySendEvent:] (in AppKit)
45 0x00007fff8d4c0b4e -[NSWindow sendEvent:] (in AppKit)
46 0x00007fff8d472e51 -[NSApplication sendEvent:] (in AppKit)
47 0x000000010f699600 -[IDEApplication sendEvent:] (in IDEKit)
48 0x00007fff8d2ff078 -[NSApplication run] (in AppKit)
49 0x00007fff8d2ea464 NSApplicationMain (in AppKit)
50 0x00007fff8e1025c9 start (in libdyld.dylib)
51 0x0000000000000001
Performing #selector(goNextOrFinish:) from sender NSButton 0x7fd6b61c24d0
abort() called

xcode 4.2 (build 4D199) crash on build with Cocos2D

Suddenly xcode crashes when i try to Run (not build) my Cocos2d iphone app. Ideas?
(I am forced to explain it more clearly so I will write some text here. And some more text. And some more text And some more text And some more text And some more text Sorry)
UNCAUGHT EXCEPTION (NSInvalidArgumentException): -[__NSCFString countByEnumeratingWithState:objects:count:]: unrecognized selector sent to instance 0x401acf220
UserInfo: (null)
Hints:
0: Replacement view is installing: <IDELogNavigator: 0x40318bd40 representing: <DVTExtension 0x40101c980: Log Navigator (Xcode.IDEKit.Navigator.Logs) v0.1>>
Backtrace:
0 0x00007fff8ca56faa __exceptionPreprocess (in CoreFoundation)
1 0x00007fff88514d5e objc_exception_throw (in libobjc.A.dylib)
2 0x00007fff8cae32ae -[NSObject doesNotRecognizeSelector:] (in CoreFoundation)
3 0x00007fff8ca43e73 ___forwarding___ (in CoreFoundation)
4 0x00007fff8ca43c88 _CF_forwarding_prep_0 (in CoreFoundation)
5 0x000000010ec1e76f -[IDELogNavigator setStateSavingSelectedObjects:] (in IDELogNavigator)
6 0x00007fff8d3e6c6a _NSSetObjectValueAndNotify (in Foundation)
7 0x000000010ec1dd77 -[IDELogNavigator revertStateWithDictionary:] (in IDELogNavigator)
8 0x00000001083e942b -[DVTStateToken _pullStateFromDictionary:] (in DVTFoundation)
9 0x00000001083e91e2 -[DVTStateToken pullStateFromRepository] (in DVTFoundation)
10 0x0000000108d0549d -[IDENavigatorArea replacementView:didInstallViewController:] (in IDEKit)
11 0x00000001085e35f1 __42-[DVTReplacementView _setupViewController]_block_invoke_0 (in DVTKit)
12 0x00000001083ea51e DVTInvokeWithFailureHint (in DVTFoundation)
13 0x00000001085e3473 -[DVTReplacementView _setupViewController] (in DVTKit)
14 0x00000001085e3345 -[DVTReplacementView installedViewController] (in DVTKit)
15 0x0000000108d2f693 -[IDENavigatorArea currentNavigator] (in IDEKit)
16 0x0000000108d4822d -[IDENavigatorArea delegateFirstResponder] (in IDEKit)
17 0x0000000108d91946 -[IDEWorkspaceTabController _changeToNavigatorWithIdentifier:sender:] (in IDEKit)
18 0x0000000108d3f10d -[IDEShowNavigatorAlert runForEvent:inWorkspace:context:completionBlock:] (in IDEKit)
19 0x0000000108a75849 -[IDEAlertEvent runInWorkspace:context:completionBlock:] (in IDEFoundation)
20 0x0000000108d416a1 -[IDERunAlertMonitor executionStart] (in IDEKit)
21 0x00007fff8d3c3fca -[__NSObserver _doit:] (in Foundation)
22 0x00007fff8d3c3e9d __-[NSNotificationCenter addObserverForName:object:queue:usingBlock:]_block_invoke_1 (in Foundation)
23 0x00007fff8c9ffaaa _CFXNotificationPost (in CoreFoundation)
24 0x00007fff8d37ffe7 -[NSNotificationCenter postNotificationName:object:userInfo:] (in Foundation)
25 0x0000000108995240 -[IDEExecutionEnvironment setCurrentLaunchSession:] (in IDEFoundation)
26 0x0000000108994de9 -[IDEExecutionEnvironment _handleLaunchSession:stateChange:] (in IDEFoundation)
27 0x000000010898b94d -[IDEExecutionEnvironment observeValueForKeyPath:ofObject:change:context:] (in IDEFoundation)
28 0x00007fff8d3c67b2 NSKeyValueNotifyObserver (in Foundation)
29 0x00007fff8d3e78eb NSKeyValueDidChange (in Foundation)
30 0x00007fff8d39404b -[NSObject(NSKeyValueObserverNotification) didChangeValueForKey:] (in Foundation)
31 0x00007fff8322a8ba _dispatch_call_block_and_release (in libdispatch.dylib)
32 0x00007fff8322bbeb _dispatch_barrier_sync_f_slow_invoke (in libdispatch.dylib)
33 0x00007fff8322c72a _dispatch_main_queue_callback_4CF (in libdispatch.dylib)
34 0x00007fff8c9ec06c __CFRunLoopRun (in CoreFoundation)
35 0x00007fff8c9eb676 CFRunLoopRunSpecific (in CoreFoundation)
36 0x00007fff8774c31f RunCurrentEventLoopInMode (in HIToolbox)
37 0x00007fff877535c9 ReceiveNextEventCommon (in HIToolbox)
38 0x00007fff87753456 BlockUntilNextEventMatchingListInMode (in HIToolbox)
39 0x00007fff89561f5d _DPSNextEvent (in AppKit)
40 0x00007fff89561861 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] (in AppKit)
41 0x00007fff8955e19d -[NSApplication run] (in AppKit)
42 0x00007fff897dcb88 NSApplicationMain (in AppKit)
43 0x00000001083b9eec (in Xcode)
Solution: I made a copy of the folder with the project, then open the xcode-project file and everything worked.

Resources