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 . :)
Related
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)
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 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
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.
I am getting following error when I try to edit any file in my project.
ASSERTION FAILURE in /SourceCache/IDEFoundation/IDEFoundation-943/Framework/Classes/Model/SourceControl/IDESourceControlTreeItem.m:771
Details: (((IDESourceControlWorkingTree *)self.sourceTree).origin) should not be nil.
Object: <IDESourceControlWorkingTreeItem: 0x401a17c00>
Method: -repositoryURLString
Thread: <NSThread: 0x40010a260>{name = (null), num = 1}
Hints: None
Backtrace:
0 0x00000001012fe366 -[IDEAssertionHandler handleFailureInMethod:object:fileName:lineNumber:messageFormat:arguments:] (in IDEKit)
1 0x00000001009751a4 _DVTAssertionFailureHandler (in DVTFoundation)
2 0x0000000100f4b455 -[IDESourceControlWorkingTreeItem repositoryURLString] (in IDEFoundation)
3 0x00007fff87b27434 _NSGetUsingKeyValueGetter (in Foundation)
4 0x00007fff87b273e9 -[NSObject(NSKeyValueCoding) valueForKey:] (in Foundation)
5 0x00007fff87b46e76 -[NSObject(NSKeyValueCoding) valueForKeyPath:] (in Foundation)
6 0x00007fff909a63f1 -[NSArrayController _multipleValueForKeyPath:atIndex:] (in AppKit)
7 0x00007fff909a54e5 -[NSArrayController _singleValueForKeyPath:] (in AppKit)
8 0x00007fff9070c09a -[_NSControllerObjectProxy valueForKeyPath:] (in AppKit)
9 0x00007fff87b46e39 -[NSObject(NSKeyValueCoding) valueForKeyPath:] (in Foundation)
10 0x00007fff87b46e39 -[NSObject(NSKeyValueCoding) valueForKeyPath:] (in Foundation)
11 0x00007fff9070bf46 -[NSBinder _valueForKeyPath:ofObject:mode:raisesForNotApplicableKeys:] (in AppKit)
12 0x00007fff9070bc30 -[NSBinder valueForBinding:resolveMarkersToPlaceholders:] (in AppKit)
13 0x00007fff9090fc92 -[NSValueBinder _referenceBindingValue] (in AppKit)
14 0x00007fff9090faa3 -[NSValueBinder _adjustObject:mode:observedController:observedKeyPath:context:editableState:adjustState:] (in AppKit)
15 0x00007fff9090f788 -[NSValueBinder _observeValueForKeyPath:ofObject:context:] (in AppKit)
16 0x00007fff909275af -[NSTextValueBinder _observeValueForKeyPath:ofObject:context:] (in AppKit)
17 0x00007fff906fdbdb -[NSObject(NSKeyValueBindingCreation) bind:toObject:withKeyPath:options:] (in AppKit)
18 0x0000000100b38c0d -[NSObject(DVTBindingUtilities) dvt_bind:toObject:withKeyPath:options:] (in DVTKit)
19 0x0000000101358251 -[IDEInspectorBasicStringProperty bindAndConfigure] (in IDEKit)
20 0x00000001013ff200 -[IDEInspectorPathFieldProperty bindAndConfigure] (in IDEKit)
21 0x000000010134e1c9 -[IDEInspectorProperty viewDidInstall] (in IDEKit)
22 0x00007fff8b3ee2e1 -[NSObject performSelector:] (in CoreFoundation)
23 0x00007fff8b3f2722 -[NSArray makeObjectsPerformSelector:] (in CoreFoundation)
24 0x0000000101407e8d -[IDEInspectorPropertyContainingView propertiesDidInstall] (in IDEKit)
25 0x0000000101407fcf -[IDEInspectorPropertyContainingView viewDidMoveToWindow] (in IDEKit)
26 0x00007fff907f9153 -[NSView _setWindow:] (in AppKit)
27 0x00007fff90725124 __NSViewRecursionHelper (in AppKit)
28 0x00007fff8b385314 CFArrayApplyFunction (in CoreFoundation)
29 0x00007fff907f90d7 -[NSView _setWindow:] (in AppKit)
30 0x00007fff90725124 __NSViewRecursionHelper (in AppKit)
31 0x00007fff8b385314 CFArrayApplyFunction (in CoreFoundation)
32 0x00007fff907f90d7 -[NSView _setWindow:] (in AppKit)
33 0x00007fff90725124 __NSViewRecursionHelper (in AppKit)
34 0x00007fff8b385314 CFArrayApplyFunction (in CoreFoundation)
35 0x00007fff907f90d7 -[NSView _setWindow:] (in AppKit)
36 0x00007fff90725124 __NSViewRecursionHelper (in AppKit)
37 0x00007fff8b385314 CFArrayApplyFunction (in CoreFoundation)
38 0x00007fff907f90d7 -[NSView _setWindow:] (in AppKit)
39 0x00007fff90725124 __NSViewRecursionHelper (in AppKit)
40 0x00007fff8b385314 CFArrayApplyFunction (in CoreFoundation)
41 0x00007fff907f90d7 -[NSView _setWindow:] (in AppKit)
42 0x00007fff907f73e2 -[NSView addSubview:] (in AppKit)
43 0x00000001046785b4 -[NSView(IBAppKitViewIntegration) ibSwizzledNSViewDebug_addSubview:] (in IDEInterfaceBuilderCocoaIntegration)
44 0x0000000100bb167d -[DVTDisclosureView layoutTopDown] (in DVTKit)
45 0x0000000100b291c3 __84+[DVTAutoLayoutView _recursivelyLayoutSubviewsOfView:populatingSetWithLaidOutViews:]_block_invoke_0 (in DVTKit)
46 0x0000000100b29272 __84+[DVTAutoLayoutView _recursivelyLayoutSubviewsOfView:populatingSetWithLaidOutViews:]_block_invoke_0 (in DVTKit)
47 0x0000000100b29272 __84+[DVTAutoLayoutView _recursivelyLayoutSubviewsOfView:populatingSetWithLaidOutViews:]_block_invoke_0 (in DVTKit)
48 0x0000000100b29272 __84+[DVTAutoLayoutView _recursivelyLayoutSubviewsOfView:populatingSetWithLaidOutViews:]_block_invoke_0 (in DVTKit)
49 0x0000000100b29272 __84+[DVTAutoLayoutView _recursivelyLayoutSubviewsOfView:populatingSetWithLaidOutViews:]_block_invoke_0 (in DVTKit)
50 0x0000000100b29272 __84+[DVTAutoLayoutView _recursivelyLayoutSubviewsOfView:populatingSetWithLaidOutViews:]_block_invoke_0 (in DVTKit)
51 0x0000000100b29272 __84+[DVTAutoLayoutView _recursivelyLayoutSubviewsOfView:populatingSetWithLaidOutViews:]_block_invoke_0 (in DVTKit)
52 0x0000000100b29272 __84+[DVTAutoLayoutView _recursivelyLayoutSubviewsOfView:populatingSetWithLaidOutViews:]_block_invoke_0 (in DVTKit)
53 0x0000000100b29272 __84+[DVTAutoLayoutView _recursivelyLayoutSubviewsOfView:populatingSetWithLaidOutViews:]_block_invoke_0 (in DVTKit)
54 0x0000000100b29272 __84+[DVTAutoLayoutView _recursivelyLayoutSubviewsOfView:populatingSetWithLaidOutViews:]_block_invoke_0 (in DVTKit)
55 0x0000000100b29272 __84+[DVTAutoLayoutView _recursivelyLayoutSubviewsOfView:populatingSetWithLaidOutViews:]_block_invoke_0 (in DVTKit)
56 0x0000000100b29037 +[DVTAutoLayoutView _recursivelyLayoutSubviewsOfView:populatingSetWithLaidOutViews:] (in DVTKit)
57 0x0000000100b28de1 -[DVTAutoLayoutView viewWillDraw] (in DVTKit)
58 0x00007fff90723c11 -[NSView viewWillDraw] (in AppKit)
59 0x00007fff90723c11 -[NSView viewWillDraw] (in AppKit)
60 0x00007fff90723c11 -[NSView viewWillDraw] (in AppKit)
61 0x00007fff90723c11 -[NSView viewWillDraw] (in AppKit)
62 0x00007fff90722952 -[NSView _sendViewWillDrawInRect:clipRootView:suppressRecursion:] (in AppKit)
63 0x00007fff907216c1 -[NSView displayIfNeeded] (in AppKit)
64 0x00007fff9072107d _handleWindowNeedsDisplayOrLayoutOrUpdateConstraints (in AppKit)
65 0x00007fff8b3b6f37 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ (in CoreFoundation)
66 0x00007fff8b3b6e96 __CFRunLoopDoObservers (in CoreFoundation)
67 0x00007fff8b38c159 __CFRunLoopRun (in CoreFoundation)
68 0x00007fff8b38bae6 CFRunLoopRunSpecific (in CoreFoundation)
69 0x00007fff8f1dd3d3 RunCurrentEventLoopInMode (in HIToolbox)
70 0x00007fff8f1e463d ReceiveNextEventCommon (in HIToolbox)
71 0x00007fff8f1e44ca BlockUntilNextEventMatchingListInMode (in HIToolbox)
72 0x00007fff906e53f1 _DPSNextEvent (in AppKit)
73 0x00007fff906e4cf5 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] (in AppKit)
74 0x00007fff906e162d -[NSApplication run] (in AppKit)
75 0x00007fff9096080c NSApplicationMain (in AppKit)
76 0x0000000100904eec (in Xcode)
I tried clearing XCode cache as mentioned in this question, but that didn't work.
I tried reinstalling xcode but that also failed.
I am using Xcode Version 4.2.1 on MAC OSX Version 10.7.2 (Lion).
Let me know if you have any suggestions regarding the same.
Thanks.
This is solved now. This was due to missing repository in XCode. I had to go to Organizer -> Repositories and press + button in bottom left corner to add repository. After which my project is compiling very well. Thanks Horst for your effort though.
Read-only source/plist/project files had been the root cause for the same problem with my Xcode. You may just verify that all files in your project folder are writable.