9 Replies
      Latest reply on Mar 30, 2020 8:33 AM by degennar
      degennar Level 1 Level 1 (0 points)

        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!

        • Re: Xcode 11.4 crash
          tthomas Level 1 Level 1 (0 points)

          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

          ```

            • Re: Xcode 11.4 crash
              degennar Level 1 Level 1 (0 points)

              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

              ```

                • Re: Xcode 11.4 crash
                  tthomas Level 1 Level 1 (0 points)

                  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?

                    • Re: Xcode 11.4 crash
                      degennar Level 1 Level 1 (0 points)

                      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...

                        • Re: Xcode 11.4 crash
                          Devepre Level 1 Level 1 (0 points)

                          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.

                    • Re: Xcode 11.4 crash
                      tthomas Level 1 Level 1 (0 points)

                      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.

                        • Re: Xcode 11.4 crash
                          Devepre Level 1 Level 1 (0 points)

                          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.
                            • Re: Xcode 11.4 crash
                              Claude31 Level 8 Level 8 (8,445 points)

                              Thanks for finding the explanation.

                               

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

                                • Re: Xcode 11.4 crash
                                  degennar Level 1 Level 1 (0 points)

                                  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!