Xcode 13 crashes unexpectedly on opening xcworkspace

I updated my xcode and macOS to support my app for iOS 15 and after the update my projects which i developed in xcode 12 is not opening anymore, it keeps crashing.

When i try open in xcode 13 the project crashing immediately after some basic loading.

I tried the following but nothing worked

  1. Deleting derived data
  2. Deleting xcuserdata inside the xcworkspace content
  3. Restarting mac multiple times

Attaching crash logs here

Path:                  /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier:            com.apple.dt.Xcode
Version:               13.0 (19234)
Build Info:            IDEFrameworks-19234000000000000~16 (13A233)
App Item ID:           497799835
App External ID:       844005016
Code Type:             X86-64 (Native)
Parent Process:        ??? [1]
Responsible:           Xcode [1178]
User ID:               501

Date/Time:             2021-09-30 22:01:12.603 +0530
OS Version:            macOS 11.6 (20G165)
Report Version:        12
Bridge OS Version:     5.5 (18P4759a)
Anonymous UUID:        69C16710-F611-9893-DF32-6C423ED21B1D


Time Awake Since Boot: 4200 seconds

System Integrity Protection: enabled

Crashed Thread:        18  Dispatch queue: <IDEXCBuildSupport.IDEXCBuildServiceBuildOperation:0x7fe1b1058480:REfc>-builder-queue (QOS: UNSPECIFIED)

Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY

Application Specific Information:
Possibly stale failure hints from 2021-09-30 16:56:00 +0000:
  0: Calling block provided to DVTSyncPerformBlock() here:
 
  0   DVTSyncPerformBlock (in DVTFoundation)
  1   closure #1 in IDEXCBuildServiceBuildOperation.addOperations(to:) (in XCBuildSupport)
  2   thunk for @escaping @callee_guaranteed () -> () (in XCBuildSupport)
  3   __NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK__ (in Foundation)
  4   -[NSBlockOperation main] (in Foundation)
  5   __NSOPERATION_IS_INVOKING_MAIN__ (in Foundation)
  6   -[NSOperation start] (in Foundation)
  7   __NSOPERATIONQUEUE_IS_STARTING_AN_OPERATION__ (in Foundation)
  8   __NSOQSchedule_f (in Foundation)
  9   _dispatch_block_async_invoke2 (in libdispatch.dylib)
 10   _dispatch_client_callout (in libdispatch.dylib)
 11   _dispatch_continuation_pop (in libdispatch.dylib)
 12   _dispatch_async_redirect_invoke (in libdispatch.dylib)
 13   _dispatch_root_queue_drain (in libdispatch.dylib)
 14   _dispatch_worker_thread2 (in libdispatch.dylib)
 15   _pthread_wqthread (in libsystem_pthread.dylib)
 16   start_wqthread (in libsystem_pthread.dylib)
 
 
ProductBuildVersion: 13A233
UNCAUGHT EXCEPTION (NSInvalidArgumentException): -[__NSCFBoolean mutableCopyWithZone:]: unrecognized selector sent to instance 0x7fff8073c230
UserInfo: (null)
Open FDs: 57/9472
Hints: 
  0: Calling block provided to DVTSyncPerformBlock() here:
 
  0   DVTSyncPerformBlock (in DVTFoundation)
  1   closure #1 in IDEXCBuildServiceBuildOperation.addOperations(to:) (in XCBuildSupport)
  2   thunk for @escaping @callee_guaranteed () -> () (in XCBuildSupport)
  3   __NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK__ (in Foundation)
  4   -[NSBlockOperation main] (in Foundation)
  5   __NSOPERATION_IS_INVOKING_MAIN__ (in Foundation)
  6   -[NSOperation start] (in Foundation)
  7   __NSOPERATIONQUEUE_IS_STARTING_AN_OPERATION__ (in Foundation)
  8   __NSOQSchedule_f (in Foundation)
  9   _dispatch_block_async_invoke2 (in libdispatch.dylib)
 10   _dispatch_client_callout (in libdispatch.dylib)
 11   _dispatch_continuation_pop (in libdispatch.dylib)
 12   _dispatch_async_redirect_invoke (in libdispatch.dylib)
 13   _dispatch_root_queue_drain (in libdispatch.dylib)
 14   _dispatch_worker_thread2 (in libdispatch.dylib)
 15   _pthread_wqthread (in libsystem_pthread.dylib)
 16   start_wqthread (in libsystem_pthread.dylib)
 
Backtrace:
  0   __exceptionPreprocess (in CoreFoundation)
  1   DVTFailureHintExceptionPreprocessor (in DVTFoundation)
  2   objc_exception_throw (in libobjc.A.dylib)
  3   -[NSObject(NSObject) __retain_OA] (in CoreFoundation)
  4   ___forwarding___ (in CoreFoundation)
  5   _CF_forwarding_prep_0 (in CoreFoundation)
  6   -[Xcode3AppTransportSecurityItemModel readValuesFromPlist] (in Xcode3Core)
  7   -[Xcode3AppTransportSecurityItemModel initWithCapabilitiesContext:item:] (in Xcode3Core)
  8   -[Xcode3TargetCapabilitiesContext capabilityItemModels] (in DevToolsCore)
  9   -[Xcode3TargetCapabilitiesContext _appIDFeatureStateForEntitlements:expansion:] (in DevToolsCore)
 10   -[Xcode3Target appIDFeaturesForBuildParameters:entitlements:withEntitlementsExpansion:] (in DevToolsCore)
 11   -[Xcode3Target appIDFeaturesForBuildParameters:] (in DevToolsCore)
 12   PBXNativeTarget.provisioningSourceData(for:) (in XCBuildSupport)
 13   PBXNativeTarget.pifRepresentation(_:) (in XCBuildSupport)
 14   @objc IDEWorkspace.pifRepresentation(_:) (in XCBuildSupport)
 15   PBXTarget.pifInfo(for:) (in XCBuildSupport)
 16   @objc IDEWorkspace.pifInfo(for:) (in XCBuildSupport)
 17   specialized IDEPIFWorkspaceSerializer.objectSignature(_:) (in XCBuildSupport)
 18   @objc IDEPIFWorkspaceSerializer.objectSignature(_:) (in XCBuildSupport)
 19   PBXProject.pifRepresentation(_:) (in XCBuildSupport)
 20   @objc IDEWorkspace.pifRepresentation(_:) (in XCBuildSupport)
 21   closure #1 in IDEWorkspace.pifInfo(for:) (in XCBuildSupport)
 22   partial apply for closure #1 in IDEWorkspace.pifInfo(for:) (in XCBuildSupport)
 23   thunk for @escaping @callee_guaranteed (@guaranteed IDEPIFSerializer) -> (@owned [String : Any]) (in XCBuildSupport)
 24   specialized IDEPIFWorkspaceSerializer.objectData(_:) (in XCBuildSupport)
 25   closure #1 in IDEWorkspace.pifObjectsIncrementally(_:) (in XCBuildSupport)
 26   closure #1 in closure #2 in IDEXCBuildServiceSession.sendPIF(completion:) (in XCBuildSupport)
 27   partial apply for closure #1 in closure #2 in IDEXCBuildServiceSession.sendPIF(completion:) (in XCBuildSupport)
 28   

my projects which i developed in xcode 12      Does it occur with several projects or only one ? Can you try to reopen with Xcode 12 ? But first, be sure you have back up of your full project folder.

Okay I have think cause of that :

UNCAUGHT EXCEPTION (NSInvalidArgumentException): -[__NSCFBoolean mutableCopyWithZone:]: unrecognized selector sent

This says that the selector provided for mutableCopyWithZone is not known.

because usually this is the system call: I believe your problem is that you deleted your Xcode 12 incorrectly. or haven’t At all.

try deleting your Xcode 12 with some sort of app uninstaller . That should work

Happening with all projects now i have Xcode 12 and 13 but the project only opening in xcode 12 and xcode 13 still crashing

Hey sorry not happening every project its happening for random only 3 projects are not opening in xcode 13 and i dont know what is the reason

Hi, Had the same issue starting with the update from Xcode 12 to 13, Specifically on Apple silicon. The issue is within ur info.plist. I created a new project and replace its generated plist with old one and xcode stopped crashing. Then i re add every property's.

Strange issue, but this is ur walk around.

I guess it had something to do with the updated architecture.

Thanks.

Xcode 13 crashes unexpectedly on opening xcworkspace
 
 
Q