i can't open my app with Xcode 13.2.1 after build my app using Xcode 14 Beta-4
can't open Xcode 13.2.1 after build my app using Xcode 14 Beta-4
Process: Xcode [3078] Path: /Applications/Xcode.app/Contents/MacOS/Xcode Identifier: com.apple.dt.Xcode Version: 13.2.1 (19586) Build Info: IDEFrameworks-19586000000000000~2 (13C100) Code Type: ARM-64 (Native) Parent Process: launchd [1] User ID: 501
Date/Time: 2022-07-29 14:35:06.3625 +0800 OS Version: macOS 12.4 (21F79) Report Version: 12 Anonymous UUID: E27C2AB6-B605-A575-5A85-F6962ED23A83
Time Awake Since Boot: 1700 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: abort() called
Application Specific Signatures: ((((void *)0) == archivableRepresentation) ) || ((((void *)0) != archivableRepresentation) && (((void *)0) != documentURL))
Kernel Triage: VM - pmap_enter failed with resource shortage VM - pmap_enter failed with resource shortage
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 libsystem_kernel.dylib 0x19b3a6d98 __pthread_kill + 8 1 libsystem_pthread.dylib 0x19b3dbee0 pthread_kill + 288 2 libsystem_c.dylib 0x19b316340 abort + 168 3 IDEKit 0x106c8b220 +[IDEAssertionHandler _handleAssertionWithLogString:assertionSignature:assertionReason:extraBacktrace:] + 1256 4 IDEKit 0x106c8b708 -[IDEAssertionHandler handleFailureInMethod:object:fileName:lineNumber:assertionSignature:messageFormat:arguments:] + 1024 5 DVTFoundation 0x103b2d6a4 _DVTAssertionHandler + 532 6 DVTFoundation 0x103b2d820 _DVTAssertionFailureHandler + 220 7 DVTFoundation 0x103b2d854 _DVTAssertionFailureHandler + 272 8 IDEKit 0x106e11aa0 -[IDEEditorHistoryItem initWithArchivableRepresentation:documentURL:fileDataType:documentExtensionIdentifier:stateDictionary:documentNavigableItemName:navigableItemName:] + 824 9 IDEKit 0x106e137b4 -[IDEEditorHistoryItem initWithCoder:] + 500 10 Foundation 0x19c338c90 _decodeObjectBinary + 2540 11 Foundation 0x19c338158 _decodeObject + 184 12 Foundation 0x19c338014 -[NSKeyedUnarchiver decodeObjectForKey:] + 176 13 Foundation 0x19c337d84 -[NSKeyedUnarchiver decodeObjectOfClasses:forKey:] + 148 14 Foundation 0x19c353e34 -[NSKeyedUnarchiver decodeObjectOfClass:forKey:] + 124 15 IDEKit 0x106d11ff0 -[IDEEditorHistoryStack initWithCoder:] + 76 16 Foundation 0x19c338c90 _decodeObjectBinary + 2540 17 Foundation 0x19c33a7e0 -[NSKeyedUnarchiver _decodeArrayOfObjectsForKey:] + 1404 18 Foundation 0x19c3537f8 -[NSArray(NSArray) initWithCoder:] + 176 19 Foundation 0x19c338c90 _decodeObjectBinary + 2540 20 Foundation 0x19c33a7e0 -[NSKeyedUnarchiver _decodeArrayOfObjectsForKey:] + 1404 21 Foundation 0x19c339a68 -[NSDictionary(NSDictionary) initWithCoder:] + 180 22 Foundation 0x19c338c90 _decodeObjectBinary + 2540 23 Foundation 0x19c33a7e0 -[NSKeyedUnarchiver _decodeArrayOfObjectsForKey:] + 1404 24 Foundation 0x19c3537f8 -[NSArray(NSArray) initWithCoder:] + 176 25 Foundation 0x19c338c90 _decodeObjectBinary + 2540 26 Foundation 0x19c33a7e0 -[NSKeyedUnarchiver _decodeArrayOfObjectsForKey:] + 1404 27 Foundation 0x19c339a68 -[NSDictionary(NSDictionary) initWithCoder:] + 180 28 Foundation 0x19c338c90 _decodeObjectBinary + 2540 29 Foundation 0x19c33a7e0 -[NSKeyedUnarchiver _decodeArrayOfObjectsForKey:] + 1404 30 Foundation 0x19c339a68 -[NSDictionary(NSDictionary) initWithCoder:] + 180 31 Foundation 0x19c338c90 _decodeObjectBinary + 2540 32 Foundation 0x19c33a7e0 -[NSKeyedUnarchiver _decodeArrayOfObjectsForKey:] + 1404 33 Foundation 0x19c339a68 -[NSDictionary(NSDictionary) initWithCoder:] + 180 34 Foundation 0x19c338c90 _decodeObjectBinary + 2540 35 Foundation 0x19c33a7e0 -[NSKeyedUnarchiver _decodeArrayOfObjectsForKey:] + 1404 36 Foundation 0x19c339a68 -[NSDictionary(NSDictionary) initWithCoder:] + 180 37 Foundation 0x19c338c90 _decodeObjectBinary + 2540 38 Foundation 0x19c338158 _decodeObject + 184 39 Foundation 0x19c338014 -[NSKeyedUnarchiver decodeObjectForKey:] + 176 40 IDEKit 0x106c6f778 -[IDEApplicationController _tabStateContextForTabNameMapFromFilePath:] + 212 41 IDEKit 0x106c6f970 -[IDEApplicationController _tabStateContextForTabNameMapByInstantiatingIfNeeded] + 172 42 IDEKit 0x106c6fbcc -[IDEApplicationController _setTabStateContext:forTabNamed:] + 156 43 IDEKit 0x106bb5a7c -[IDEWorkspaceDocument commitStateToDictionary:] + 700 44 DVTFoundation 0x1039d42fc -[DVTStateToken _copyStatefulObjectState] + 148 45 DVTFoundation 0x1039d4520 -[DVTStateToken pushStateToRepositoryAndReturnError:] + 68 46 DVTFoundation 0x103a6bc0c -[DVTStateRepository _updateStateIfNeeded] + 260 47 DVTFoundation 0x103a6cb5c -[DVTStateRepository collectStateFromRegisteredObjects] + 88 48 IDEKit 0x106bb38c8 -[IDEWorkspaceDocument writeStateData] + 488 49 IDEKit 0x106ba27dc __28-[IDEWorkspaceDocument init]_block_invoke + 168 50 DVTFoundation 0x103904a3c -[DVTDelayedInvocation runBlock:] + 676 51 Foundation 0x19c3ac5a4 __NSFireDelayedPerform + 460 52 CoreFoundation 0x19b4c3954 CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION + 32 53 CoreFoundation 0x19b4c353c __CFRunLoopDoTimer + 1064 54 CoreFoundation 0x19b4c2fc4 __CFRunLoopDoTimers + 392 55 CoreFoundation 0x19b4a7a54 __CFRunLoopRun + 1936
This is an issue in Xcode restoring its previous sessions. I had a similar problem and solved it by holding shift while launching Xcode 13.
I found that the issue is related to the compilation time graph view of Xcode 14. After closing all tabs that displaying the time graph in Xcode 14, Xcode 13 stops crashing. You can also just open Xcode 14, close all file tabs, close all project windows, then reopen Xcode 13.