Xcode 11.4 crash

Yesterday I was using Xcode normally. After the request of installing some updates I started again the application but then it was not able to open my projects anymore: the app just crashes as soon as I open the folder containing my project. These are projects cloned from a GitHub repository and they consists of simple text files in the end.


I tried to create a new 'proper' Xcode project and it worked, and it was also fine to close and starting again the app and opening that project. I tried to remove my projects and to clone them again, but still no response. I tried to remove Xcode and install it again, no result. I also tried to start the OS in safe mode and tried to open the project again, same result.


Thanks in advance for your help!

11.4 is also crashing for me soon after I open the workspace for my app project. It occurs just after indexing starts. Since I updated to 11.4, I've not been able to successfully open this project, though other, smaller projects and playgrounds open fine.


I've tried:

* doing a cmd-opt-shift-K clean before the indexing starts; the clean succeeds but then Xcode still crashes when the indexing starts;

* deleting the Derived Data folder while Xcode isn't running, but it still crashes the same way when it starts;

* `pod install`, no luck.


My crash logs all look like the following snippet. Do yours?


```

Application Specific Information:

ProductBuildVersion: 11E146

ASSERTION FAILURE in /Library/Caches/com.apple.xbs/Sources/DVTFrameworks/DVTFrameworks-16126/DVTUserInterfaceKit/CustomUI/DVTTableCellView.m:178

Details: Assertion failed: invalidatableObject.valid

Object: <DVTTableCellViewOneLine: 0x7fde6a1724f0>

Method: -_startObservingAutoProperties

Thread: <NSThread: 0x7fde6ed1b720>{number = 1, name = main}

Open FDs: 70/9472

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) dvt_updateBoundValueForBinding:] (in DVTUserInterfaceKit)

8 -[DVTBindingHelper observeValueForKeyPath:ofObject:change:context:] (in DVTUserInterfaceKit)

9 NSKeyValueNotifyObserver (in Foundation)

10 NSKeyValueDidChange (in Foundation)

11 NSKeyValueDidChangeWithPerThreadPendingNotifications (in Foundation)

12 -[NSKeyValueObservance observeValueForKeyPath:ofObject:change:context:] (in Foundation)

13 NSKeyValueNotifyObserver (in Foundation)

14 NSKeyValueDidChange (in Foundation)

15 NSKeyValueDidChangeWithPerThreadPendingNotifications (in Foundation)

16 -[IDENavigableItem(IDENavigableItemSubclasserExtensions) invalidateChildItems] (in IDEKit)

17 -[IDEKeyDrivenNavigableItem invalidateChildItems] (in IDEKit)

18 +[IDEKeyDrivenNavigableItem observeValueForKeyPath:ofObject:change:context:] (in IDEKit)

19 NSKeyValueNotifyObserver (in Foundation)

20 NSKeyValueDidChange (in Foundation)

21 -[NSObject(NSKeyValueObservingPrivate) _changeValueForKeys:count:maybeOldValuesDict:maybeNewValuesDict:usingBlock:] (in Foundation)

22 -[NSObject(NSKeyValueObservingPrivate) _changeValueForKey:key:key:usingBlock:] (in Foundation)

23 _NSSetObjectValueAndNotify (in Foundation)

24 closure #1 in SourceControlWorkspaceHolder.loadWorkingCopies() (in IDESourceControlUI)

25 closure #1 in closure #1 in SourceControlWorkingCopyHolder.performTreeBuild(_:) (in IDESourceControlUI)

26 thunk for @escaping @callee_guaranteed () -> () (in IDESourceControlUI)

27 -[DVTModelGraphTransactionScope performTransaction:] (in DVTFoundation)

28 closure #1 in SourceControlWorkingCopyHolder.performTreeBuild(_:) (in IDESourceControlUI)

29 thunk for @escaping @callee_guaranteed () -> () (in DVTFoundation)

30 ___DVTCachedTimeSlicedMainThreadBlockProcessingQueueForKey_block_invoke_2 (in DVTFoundation)

31 -[_DVTTimeSlicedMainThreadUnorderedNonUniquingWorkQueue _processWorkItemsWithDeadline:] (in DVTFoundation)

32 -[DVTTimeSlicedMainThreadWorkQueue _processWithDeadline:] (in DVTFoundation)

33 -[_DVTTimeSlicedMainThreadActiveWorkQueues _processWorkQueuesOnDeadline] (in DVTFoundation)

34 __NSFireDelayedPerform (in Foundation)

35 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ (in CoreFoundation)

36 __CFRunLoopDoTimer (in CoreFoundation)

37 __CFRunLoopDoTimers (in CoreFoundation)

38 __CFRunLoopRun (in CoreFoundation)

39 CFRunLoopRunSpecific (in CoreFoundation)

40 RunCurrentEventLoopInMode (in HIToolbox)

41 ReceiveNextEventCommon (in HIToolbox)

42 _BlockUntilNextEventMatchingListInModeWithFilter (in HIToolbox)

43 _DPSNextEvent (in AppKit)

44 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] (in AppKit)

45 -[DVTApplication nextEventMatchingMask:untilDate:inMode:dequeue:] (in DVTKit)

46 -[NSApplication run] (in AppKit)

47 NSApplicationMain (in AppKit)

48 main (in Xcode)

49 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 _DVTAssertionFailureHandler (in DVTFoundation)

4 -[DVTTableCellView _startObservingAutoProperties] (in DVTUserInterfaceKit)

5 -[DVTTableCellView setObjectValue:] (in DVTUserInterfaceKit)

6 specialized SourceControlNavigator.outlineView(_:viewFor:item:) (in IDESourceControlUI)

7 @objc SourceControlNavigator.outlineView(_:viewFor:item:) (in IDESourceControlUI)

8 -[NSTableView(NSTableViewViewBased) makeViewForTableColumn:row:] (in AppKit)

9 -[NSTableRowData _addViewToRowView:atColumn:row:] (in AppKit)

10 -[NSTableRowData _addViewsToRowView:atRow:] (in AppKit)

11 -[NSTableRowData _initializeRowView:atRow:] (in AppKit)

12 -[NSTableRowData _preparedRowViewForRow:storageHandler:] (in AppKit)

13 -[NSTableRowData _addRowViewForVisibleRow:withPriorView:] (in AppKit)

14 -[NSTableRowData _updateVisibleViewsBasedOnUpdateItems] (in AppKit)

15 -[NSTableRowData _updateVisibleViewsBasedOnUpdateItemsAnimated] (in AppKit)

16 -[NSTableRowData _doWorkAfterEndUpdates] (in AppKit)

17 -[NSOutlineView reloadItem:reloadChildren:] (in AppKit)

18 -[DVTOutlineView reloadItem:reloadChildren:] (in DVTUserInterfaceKit)

19 -[IDENavigatorOutlineView reloadItem:reloadChildren:] (in IDEKit)

20 __83-[_IDENavigatorOutlineViewDataSource _processNavigableItemGraphChangeNotification:]_block_invoke_2 (in IDEKit)

21 +[NSAnimationContext(DVTNSAnimationContextAdditions) dvt_runWithAnimationEnabled:block:] (in DVTCocoaAdditionsKit)

22 -[IDENavigatorOutlineView suspendEditingWhilePerformingBlock:] (in IDEKit)

23 -[_IDENavigatorOutlineViewDataSource _processNavigableItemGraphChangeNotification:] (in IDEKit)

24 __51-[_IDENavigatorOutlineViewDataSource setRootItems:]_block_invoke (in IDEKit)

25 DVTInvokeWithLazyFailureHint (in DVTFoundation)

26 __99+[_DVTNotificationReceiver _recieveNotification:queue:creationBacktrace:createHintGenerator:block:]_block_invoke (in DVTFoundation)

27 +[_DVTNotificationReceiver _recieveNotification:queue:creationBacktrace:createHintGenerator:block:] (in DVTFoundation)

28 -[_DVTNotificationReceiver receiveNotification:] (in DVTFoundation)

29 __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ (in CoreFoundation)

30 ___CFXRegistrationPost1_block_invoke (in CoreFoundation)

31 _CFXRegistrationPost1 (in CoreFoundation)

32 ___CFXNotificationPost_block_invoke (in CoreFoundation)

33 -[_CFXNotificationRegistrar find:object:observer:enumerator:] (in CoreFoundation)

34 _CFXNotificationPost (in CoreFoundation)

35 -[NSNotificationCenter postNotificationName:object:userInfo:] (in Foundation)

36 -[NSNotificationCenter(DVTNSNotificationCenterAdditions_MRR) _dvt_postNotificationName:object:userInfo:] (in DVTFoundation)

37 -[IDENavigableItemCoordinator _postNotificationNamed:forChangedItems:] (in IDEKit)

38 -[IDENavigableItemCoordinator _delayedPostGraphAndPropertyChangeNotifications] (in IDEKit)

39 __48-[DVTDelayedInvocation initWithTarget:selector:]_block_invoke (in DVTFoundation)

40 -[DVTDelayedInvocation runBlock:] (in DVTFoundation)

41 -[DVTDelayedInvocation invokeIfNeeded] (in DVTFoundation)

42 -[IDENavigableItemCoordinator processPendingChanges] (in IDEKit)

43 -[IDEOutlineBasedNavigator revertState] (in IDEKit)

44 closure #3 in closure #1 in SourceControlNavigator.configureNavigator() (in IDESourceControlUI)

45 closure #1 in closure #1 in SourceControlWorkingCopyHolder.performTreeBuild(_:) (in IDESourceControlUI)

46 thunk for @escaping @callee_guaranteed () -> () (in IDESourceControlUI)

47 -[DVTModelGraphTransactionScope performTransaction:] (in DVTFoundation)

48 closure #1 in SourceControlWorkingCopyHolder.performTreeBuild(_:) (in IDESourceControlUI)

49 thunk for @escaping @callee_guaranteed () -> () (in DVTFoundation)

50 ___DVTCachedTimeSlicedMainThreadBlockProcessingQueueForKey_block_invoke_2 (in DVTFoundation)

51 -[_DVTTimeSlicedMainThreadUnorderedNonUniquingWorkQueue _processWorkItemsWithDeadline:] (in DVTFoundation)

52 -[DVTTimeSlicedMainThreadWorkQueue _processWithDeadline:] (in DVTFoundation)

53 -[_DVTTimeSlicedMainThreadActiveWorkQueues _processWorkQueuesOnDeadline] (in DVTFoundation)

54 __NSFireDelayedPerform (in Foundation)

55 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ (in CoreFoundation)

56 __CFRunLoopDoTimer (in CoreFoundation)

57 __CFRunLoopDoTimers (in CoreFoundation)

58 __CFRunLoopRun (in CoreFoundation)

59 CFRunLoopRunSpecific (in CoreFoundation)

60 RunCurrentEventLoopInMode (in HIToolbox)

61 ReceiveNextEventCommon (in HIToolbox)

62 _BlockUntilNextEventMatchingListInModeWithFilter (in HIToolbox)

63 _DPSNextEvent (in AppKit)

64 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] (in AppKit)

65 -[DVTApplication nextEventMatchingMask:untilDate:inMode:dequeue:] (in DVTKit)

66 -[NSApplication run] (in AppKit)

67 NSApplicationMain (in AppKit)

68 main (in Xcode)

69 start (in libdyld.dylib)


abort() called



Application Specific Signatures:

invalidatableObject.valid

```

Dear tthomas thanks for your reply.

It is not straightforward for me to understand these log files.. they look slightly different to me:


```

Application Specific Information:

Sending runOpenPanel: to IDEWelcomeWindowController from <NSButton: 0x7fd3d142a0e0>

ProductBuildVersion: 11E146

ASSERTION FAILURE in /Library/Caches/com.apple.xbs/Sources/DVTFrameworks/DVTFrameworks-16126/DVTFoundation/Protocols/DVTInvalidation.m:439

Details: DVTInvalidationCorePrimitiveInvalidate called twice during -invalidate: <0x7fd3d11708e0 IDEWelcomeWindowController>.

Function: void DVTInvalidationCorePrimitiveInvalidate(NSObject<DVTInvalidation> * _Nonnull __strong)

Thread: <NSThread: 0x7fd3cc409d10>{number = 1, name = main}

Open FDs: 41/7168

Hints:

0: Sending runOpenPanel: to IDEWelcomeWindowController from <NSButton: 0x7fd3d142a0e0>

Backtrace:

0 -[IDEAssertionHandler handleFailureInFunction:fileName:lineNumber:assertionSignature:messageFormat:arguments:] (in IDEKit)

1 _DVTAssertionHandler (in DVTFoundation)

2 _DVTAssertionFailureHandler (in DVTFoundation)

3 DVTInvalidationCorePrimitiveInvalidate (in DVTFoundation)

4 -[DVTInvalidationMixIn invalidate] (in DVTFoundation)

5 __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ (in CoreFoundation)

6 ___CFXRegistrationPost1_block_invoke (in CoreFoundation)

7 _CFXRegistrationPost1 (in CoreFoundation)

8 ___CFXNotificationPost_block_invoke (in CoreFoundation)

9 -[_CFXNotificationRegistrar find:object:observer:enumerator:] (in CoreFoundation)

10 _CFXNotificationPost (in CoreFoundation)

11 -[NSNotificationCenter postNotificationName:object:userInfo:] (in Foundation)

12 -[NSNotificationCenter(DVTNSNotificationCenterAdditions_MRR) _dvt_postNotificationName:object:userInfo:] (in DVTFoundation)

13 -[NSWindow _finishClosingWindow] (in AppKit)

14 -[NSWindow _close] (in AppKit)

15 -[IDEWelcomeWindow close] (in IDEKit)

16 -[IDEWelcomeWindowController _windowDidBecomeKeyOrMain:] (in IDEKit)

17 __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ (in CoreFoundation)

18 ___CFXRegistrationPost1_block_invoke (in CoreFoundation)

19 _CFXRegistrationPost1 (in CoreFoundation)

20 ___CFXNotificationPost_block_invoke (in CoreFoundation)

21 -[_CFXNotificationRegistrar find:object:observer:enumerator:] (in CoreFoundation)

22 _CFXNotificationPost (in CoreFoundation)

23 -[NSNotificationCenter postNotificationName:object:userInfo:] (in Foundation)

24 -[NSNotificationCenter(DVTNSNotificationCenterAdditions_MRR) _dvt_postNotificationName:object:userInfo:] (in DVTFoundation)

25 -[NSWindow becomeKeyWindow] (in AppKit)

26 -[NSWindow _changeKeyAndMainLimitedOK:] (in AppKit)

27 -[NSWindow _makeKeyRegardlessOfVisibility] (in AppKit)

28 -[NSApplication _orderFrontModalWindow:relativeToWindow:] (in AppKit)

29 -[NSApplication _commonBeginModalSessionForWindow:relativeToWindow:modalDelegate:didEndSelector:contextInfo:] (in AppKit)

30 -[NSApplication beginModalSessionForWindow:] (in AppKit)

31 -[DVTApplication beginModalSessionForWindow:] (in DVTKit)

32 __35-[NSApplication runModalForWindow:]_block_invoke_2 (in AppKit)

33 __35-[NSApplication runModalForWindow:]_block_invoke (in AppKit)

34 _NSTryRunModal (in AppKit)

35 -[NSApplication runModalForWindow:] (in AppKit)

36 -[DVTApplication runModalForWindow:] (in DVTKit)

37 __19-[NSAlert runModal]_block_invoke_2 (in AppKit)

38 __19-[NSAlert runModal]_block_invoke (in AppKit)

39 _NSTryRunModal (in AppKit)

40 -[NSAlert runModal] (in AppKit)

41 -[NSApplication(NSErrorPresentation) presentError:] (in AppKit)

42 -[DVTApplication presentError:] (in DVTKit)

43 __43-[IDEWelcomeWindowController runOpenPanel:]_block_invoke (in IDEKit)

44 __57-[IDEDocumentController runOpenPanelWithCompletionBlock:]_block_invoke_2 (in IDEKit)

45 __83-[IDEDocumentController _runOpenPanelWithURLsFromRunningOpenPanel:completionBlock:]_block_invoke (in IDEKit)

46 __81-[IDEDocumentController openDocumentWithContentsOfURL:display:completionHandler:]_block_invoke_2 (in IDEKit)

47 __81-[IDEDocumentController openDocumentWithContentsOfURL:display:completionHandler:]_block_invoke_2.1134 (in IDEKit)

48 __82-[IDEDocumentController _openSimpleFileDocumentLocations:display:completionBlock:]_block_invoke_2 (in IDEKit)

49 __82-[IDEDocumentController _openSimpleFileDocumentLocations:display:completionBlock:]_block_invoke.998 (in IDEKit)

50 __109-[IDEDocumentController _openSimpleFileFolderDocumentLocations:displayDocument:isSingleFile:completionBlock:]_block_invoke_2 (in IDEKit)

51 -[IDEDocumentController _openSimpleFileFolderDocumentLocations:displayDocument:isSingleFile:completionBlock:] (in IDEKit)

52 -[IDEDocumentController _openSimpleFileDocumentLocations:display:completionBlock:] (in IDEKit)

53 __86-[IDEDocumentController _openDocumentsForDocumentLocations:display:completionHandler:]_block_invoke (in IDEKit)

54 __89-[IDEDocumentController _openProjectsPlaygroundsAndWorkspaces:display:completionHandler:]_block_invoke_2 (in IDEKit)

55 -[IDEDocumentController _openProjectsPlaygroundsAndWorkspaces:display:openedDocuments:simpleFileDocumentLocations:completionHandler:] (in IDEKit)

56 -[IDEDocumentController _openProjectsPlaygroundsAndWorkspaces:display:completionHandler:] (in IDEKit)

57 -[IDEDocumentController _openDocumentsForDocumentLocations:display:completionHandler:] (in IDEKit)

58 -[IDEDocumentController openDocumentWithContentsOfURL:display:completionHandler:] (in IDEKit)

59 -[IDEDocumentController _runOpenPanelWithURLsFromRunningOpenPanel:completionBlock:] (in IDEKit)

60 -[IDEDocumentController runOpenPanelWithCompletionBlock:] (in IDEKit)

61 -[IDEWelcomeWindowController runOpenPanel:] (in IDEKit)

62 -[NSApplication(NSResponder) sendAction:to:from:] (in AppKit)

63 __37-[DVTApplication sendAction:to:from:]_block_invoke.86 (in DVTKit)

64 DVTInvokeWithFailureHint (in DVTFoundation)

65 -[DVTApplication sendAction:to:from:] (in DVTKit)

66 -[NSControl sendAction:to:] (in AppKit)

67 __26-[NSCell _sendActionFrom:]_block_invoke (in AppKit)

68 -[NSCell _sendActionFrom:] (in AppKit)

69 -[NSButtonCell _sendActionFrom:] (in AppKit)

70 NSControlTrackMouse (in AppKit)

71 -[NSCell trackMouse:inRect:ofView:untilMouseUp:] (in AppKit)

72 -[NSButtonCell trackMouse:inRect:ofView:untilMouseUp:] (in AppKit)

73 -[NSControl mouseDown:] (in AppKit)

74 -[NSWindow(NSEventRouting) _handleMouseDownEvent:isDelayedEvent:] (in AppKit)

75 -[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:] (in AppKit)

76 -[NSWindow(NSEventRouting) sendEvent:] (in AppKit)

77 -[NSApplication(NSEvent) sendEvent:] (in AppKit)

78 -[IDEApplication sendEvent:] (in IDEKit)

79 -[NSApplication run] (in AppKit)

80 NSApplicationMain (in AppKit)

81 main (in Xcode)

82 start (in libdyld.dylib)


abort() called

```

Thanks degennar. Looks like your crash is in the same general area (DVTFrameworks), but a different assertion failure in a different file.


Mine:

```

ASSERTION FAILURE in /Library/Caches/com.apple.xbs/Sources/DVTFrameworks/DVTFrameworks-16126/DVTUserInterfaceKit/CustomUI/DVTTableCellView.m:178

Details: Assertion failed: invalidatableObject.valid

Object: <DVTTableCellViewOneLine: 0x7fde6a1724f0>

Method: -_startObservingAutoProperties

```


Yours:

```

ASSERTION FAILURE in /Library/Caches/com.apple.xbs/Sources/DVTFrameworks/DVTFrameworks-16126/DVTFoundation/Protocols/DVTInvalidation.m:439

Details: DVTInvalidationCorePrimitiveInvalidate called twice during -invalidate: <0x7fd3d11708e0 IDEWelcomeWindowController>.

Function: void DVTInvalidationCorePrimitiveInvalidate(NSObject<DVTInvalidation> * _Nonnull __strong)

```


So maybe they're related?

Honestly I don't know. Btw, for the moment I found away to work around the problem. I simply removed Xcode 11.4 and installed the previous version 11.3.1 (taken from here https://developer.apple.com/download/more/?name=Xcode).


Now it is doing something new: when I open as a project the directory with all my scripts it gives the following error message: "Could not open file. (/Users/riccardo/CODES/KC_Wann)".


However, when I click on OK then Xcode opens correctly and at least I can work as before...

I was finally able to open my workspace successfully by holding down shift while launching Xcode. I can't remember what that does or if it's even a thing, but now I'm able to open the workspace even without holding down shift.

I'm experiencing the same issue with DVTFramework:


Application Specific Information:
ProductBuildVersion: 11E146
ASSERTION FAILURE in /Library/Caches/com.apple.xbs/Sources/DVTFrameworks/DVTFrameworks-16126/DVTUserInterfaceKit/CustomUI/DVTTableCellView.m:178
Details:  Assertion failed: invalidatableObject.valid
Object:   
Method:   -_startObservingAutoProperties
Thread:   {number = 1, name = main}
Open FDs: 46/7168

I'm rely on latest Xcode version because of using latest iOS version on my test devices. Also iOS 13.4 included neccesary fixes for SwiftUI stuff I'm using. So it's not an option to downgrade Xcode.

Thanks tthomas, you are huge time saver. This workaround did the trick. I was trying to close Xcode tabs before it crashes, but without luck. Holding Shift while launching the Xcode did the trick.


According to the https://support.apple.com/en-us/HT204005 here what is holding Shift for:


// Or press and hold the Shift key while opening an app. 
// This doesn't change the setting, but the app forgets any windows
// that were open the last time you quit the app.

Thanks for finding the explanation.


That means the crash was due to a "corrupted" window probably.

I am sorry but in my case also the opening holding the Shift key did not help! I tried also to restart the OS in safe mode, but still I got the same problem.


My project is just a folder with text files and subdirectories containing other text files.. Xcode opens correctly every single file, but if I try to open a the full folder then it crashes. I tried to create a folder in my desktop with only one file inside and Xcode crashes also if I open that folder.


So the problem is when Xcode tries to open a directory as a project... any advice?


Thanks!

Encountering the same crash. Doesn't happen with every workspace but I have at least two that are crashing. Holding shift opens Xcode without restoring the windows so that's how you can get it to open without crashing but then opening one of my workspaces again just crashes again.

I just started experiencing this crash on May 27. It started after I committed changes in a feature branch, switched to develop, made a new branch there but then stashed changes, switched to develop then switched to the original feature branch.

It seems to crash when I'm on that feature branch now. Wonder if there is way to check the integrity of the files in that branch.

Same for Xcode 11.5.


I just started having this problem today, but only with one project. I tried opening Xcode while holding down Shift as suggested, but that had no effect. I also tried reloading the xcode.project from a recent backup, no joy. Apple really needs to address this problem! Here is the log.


Process: Xcode [5780]

Path: /Applications/Xcode.app/Contents/MacOS/Xcode

Identifier: com.apple.dt.Xcode

Version: 11.5 (16139)

Build Info: IDEFrameworks-16139000000000000~62 (11E608c)

App Item ID: 497799835

App External ID: 835814967

Code Type: X86-64 (Native)

Parent Process: ??? [1]

Responsible: Xcode [5780]

User ID: 503



Date/Time: 2020-06-09 15:08:18.920 -0500

OS Version: Mac OS X 10.15.4 (19E287)

Report Version: 12

Anonymous UUID: 79A51667-E346-704F-A7E9-60A204A762E4





Time Awake Since Boot: 3400 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: 11E608c

ASSERTION FAILURE in /Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-16139/IDEKit/Behaviors/Alerts/ShowEditorAlert/IDEShowEditorAlert.m:143

Details: Assertion failed: [editorArea _canAddEditorAreaSplitAfterEditorAreaSplit:lastActiveEditorAreaSplit layout:IDEEditorMultipleSplitRelativeLayout_Default]

Object: <IDEShowEditorAlert>

Method: +_createEditorAreaSplitForEditorArea:lastActiveEditorAreaSplit:

Thread: <NSThread: 0x7f9860c1aa60>{number = 1, name = main}

Open FDs: 53/9472

Hints:


Backtrace:

0 -[IDEAssertionHandler handleFailureInMethod:object:fileName:lineNumber:assertionSignature:messageFormat:arguments:] (in IDEKit)

1 _DVTAssertionHandler (in DVTFoundation)

2 _DVTAssertionFailureHandler (in DVTFoundation)

3 _DVTAssertionFailureHandler (in DVTFoundation)

4 +[IDEShowEditorAlert _createEditorAreaSplitForEditorArea:lastActiveEditorAreaSplit:] (in IDEKit)

5 +[IDEShowEditorAlert _editorAreaSplitForDestination:workspaceTabController:] (in IDEKit)

6 -[IDEShowEditorAlert runForEvent:inWorkspace:context:completionBlock:] (in IDEKit)

7 -[IDEAlertEvent runInWorkspace:context:completionBlock:] (in IDEFoundation)

8 -[IDEAlertEvent runInWorkspace:context:] (in IDEFoundation)

9 -[IDEBuildAlertMonitor buildDidStartForExecutionEnvironment:] (in IDEKit)

10 __55-[IDEBuildAlertMonitor initWithWorkspaceTabController:]_block_invoke.29 (in IDEKit)

11 -[DVTObservingBlockToken observeValueForKeyPath:ofObject:change:context:] (in DVTFoundation)

12 NSKeyValueNotifyObserver (in Foundation)

13 NSKeyValueDidChange (in Foundation)

14 NSKeyValueDidChangeWithPerThreadPendingNotifications (in Foundation)

15 -[IDEExecutionEnvironment observeValueForKeyPath:ofObject:change:context:] (in IDEFoundation)

16 NSKeyValueNotifyObserver (in Foundation)

17 NSKeyValueDidChange (in Foundation)

18 -[NSObject(NSKeyValueObservingPrivate) _changeValueForKeys:count:maybeOldValuesDict:maybeNewValuesDict:usingBlock:] (in Foundation)

19 -[NSObject(NSKeyValueObservingPrivate) _changeValueForKey:key:key:usingBlock:] (in Foundation)

20 _NSSetLongLongValueAndNotify (in Foundation)

21 -[IDEBuildOperation start] (in IDEFoundation)

22 __NSThreadPerformPerform (in Foundation)

23 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ (in CoreFoundation)

24 __CFRunLoopDoSource0 (in CoreFoundation)

25 __CFRunLoopDoSources0 (in CoreFoundation)

26 __CFRunLoopRun (in CoreFoundation)

27 CFRunLoopRunSpecific (in CoreFoundation)

28 RunCurrentEventLoopInMode (in HIToolbox)

29 ReceiveNextEventCommon (in HIToolbox)

30 _BlockUntilNextEventMatchingListInModeWithFilter (in HIToolbox)

31 _DPSNextEvent (in AppKit)

32 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] (in AppKit)

33 -[DVTApplication nextEventMatchingMask:untilDate:inMode:dequeue:] (in DVTKit)

34 -[NSApplication run] (in AppKit)

35 NSApplicationMain (in AppKit)

36 main (in Xcode)

37 start (in libdyld.dylib)


abort() called

Same for Xcode 11.6

Code Block Process: Xcode [10016]
Path: /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier: Xcode
Version: 11.6 (16141)
Build Info: IDEFrameworks-16141000000000000~2 (11E708)
App Item ID: 497799835
App External ID: 836655024
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Xcode [10016]
User ID: 502
Date/Time: 2020-07-31 11:15:01.018 -0300
OS Version: Mac OS X 10.15.6 (19G73)
Report Version: 12
Bridge OS Version: 3.0 (14Y908)
Anonymous UUID: 8F8AD05D-B28B-7570-E415-2B35FF2D0EEC
Sleep/Wake UUID: 05ACF941-E641-4B8B-890D-0AD3CCDB872D
Time Awake Since Boot: 140000 seconds
Time Since Wake: 1300 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: 11E708
ASSERTION FAILURE in /Library/Caches/com.apple.xbs/Sources/DVTFrameworks/DVTFrameworks-16131.1/DVTUserInterfaceKit/CustomUI/DVTTableCellView.m:178
Details: Assertion failed: invalidatableObject.valid
Object: <DVTTableCellViewOneLine: 0x7fcb3a428e50>
Method: -_startObservingAutoProperties
Thread: <NSThread: 0x7fcb4a40b170>{number = 1, name = main}
Open FDs: 44/7168
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) dvt_updateBoundValueForBinding:] (in DVTUserInterfaceKit)
8 -[DVTBindingHelper observeValueForKeyPath:ofObject:change:context:] (in DVTUserInterfaceKit)
9 NSKeyValueNotifyObserver (in Foundation)
10 NSKeyValueDidChange (in Foundation)
11 NSKeyValueDidChangeWithPerThreadPendingNotifications (in Foundation)
12 -[NSKeyValueObservance observeValueForKeyPath:ofObject:change:context:] (in Foundation)


Xcode 11.4 crash
 
 
Q