Xcode 16.0 Crashing on macOS 15: NSInvalidArgumentException

Hello everyone,

I’m facing a frustrating issue with Xcode 16.0 crashing immediately upon startup after I upgraded to macOS 15.0. Any help appreciated!


Translated Report (Full Report Below)

Process: Xcode [10530] Path: /Applications/Xcode.app/Contents/MacOS/Xcode Identifier: com.apple.dt.Xcode Version: 16.0 (23051) Build Info: IDEApplication-23051000000000000~2 (16A242d) App Item ID: 497799835 App External ID: 869020508 Code Type: X86-64 (Native) Parent Process: launchd [1] User ID: 501

Date/Time: 2024-09-28 01:24:51.5167 +0100 OS Version: macOS 15.0 (24A335) Report Version: 12 Bridge OS Version: 9.0 (22P353) Anonymous UUID: D25ADD90-233B-1703-21AC-A6FA4E3D75B8

Sleep/Wake UUID: F37B53C4-1D4C-40B4-AA91-30FD1B0B2D51

Time Awake Since Boot: 14000 seconds Time Since Wake: 6748 seconds

System Integrity Protection: enabled

Crashed Thread: 1

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

Termination Reason: Namespace SIGNAL, Code 6 Abort trap: 6 Terminating Process: Xcode [10530]

Application Specific Information: abort() called

Application Specific Signatures: NSInvalidArgumentException

Application Specific Backtrace 0: 0 CoreFoundation 0x00007ff8086186d6 exceptionPreprocess + 242 1 DVTFoundation 0x000000010ded4173 DVTFailureHintExceptionPreprocessor + 448 2 libobjc.A.dylib 0x00007ff8080ffc00 objc_exception_throw + 62 3 CoreData 0x00007ff80f587f49 -[NSPersistentContainer loadStoreDescriptions:withCompletionHandler:] + 745 4 CoreData 0x00007ff80f336a75 -[NSPersistentContainer loadPersistentStoresWithCompletionHandler:] + 421 5 XcodeCloudKit 0x0000000122d8b178 $sSo21NSPersistentContainerC13XcodeCloudKitE24xcc_loadPersistentStoresSo0A16StoreDescriptionCyYaKFTY0 + 392 6 XcodeCloudKit 0x0000000123038b41 $s13XcodeCloudKit11PersistenceO8CoreDataO11CoordinatorV4load33_18A3EDB99D4ACDAD00E5493367C885E4LL9containerySo21NSPersistentContainerC_tFyyYacfU0_TQ1 + 1 7 XcodeCloudKit 0x0000000122a40ca1 $s12XcodeCloudUI5AlertV6ButtonV0aB3KitE12editWorkflow5forId9workspace6windowAESS_xSo8NSWindowCtAF17WorkspaceProviderRzlFZyyYbScMYccfU_yyYacfU_TATQ0 + 1 8 XcodeCloudKit 0x0000000122a85ec1 $sxIeAgHr_xs5Error_pIegHrzo_s8SendableRzlTR10Foundation3URLVSg_Tg5TQ0_ + 1 9 XcodeCloudKit 0x0000000122b4f941 $s13XcodeCloudKit5StoreC17UpdateCoordinatorC11updateTeams33_E402E4AAA8712E61E54F530D6C0BBC6ALL12teamSessionsySayAA11TeamSessionCG_tYaKFyScgyyts5Error_pGzYaKXEfU_yyYaKcfU_TATQ0_ + 1 10 libswift_Concurrency.dylib 0x00007ffd0e1fb441 _ZL23completeTaskWithClosurePN5swift12AsyncContextEPNS_10SwiftErrorE + 1

Thread 0:: Dispatch queue: com.apple.main-thread 0 libswiftCore.dylib 0x7ff819ddd124 swift_conformsToProtocolMaybeInstantiateSuperclasses(swift::TargetMetadata<swift::InProcess> const*, swift::TargetProtocolDescriptor<swift::InProcess> const*, bool)::$_1::operator()((anonymous namespace)::ConformanceSection const&) const::'lambda'(swift::TargetProtocolConformanceDescriptor<swift::InProcess> const&)::operator()(swift::TargetProtocolConformanceDescriptor<swift::InProcess> const&) const + 4 1 libswiftCore.dylib 0x7ff819ddc1af swift_conformsToProtocolMaybeInstantiateSuperclasses(swift::TargetMetadata<swift::InProcess> const*, swift::TargetProtocolDescriptor<swift::InProcess> const*, bool) + 3359 2 libswiftCore.dylib 0x7ff819dda56e swift_conformsToProtocol2 + 78 3 SwiftUICore 0x7ffb12e7da7c 0x7ffb12a27000 + 4549244 4 AttributeGraph 0x7ff919e5934c AGTypeApplyFields2::Visitor::visit_field(AG::swift::metadata const*, AG::swift::field_record const&, unsigned long, unsigned long) + 98 5 AttributeGraph 0x7ff919e51f4e AG::swift::metadata::visit(AG::swift::metadata_visitor&) const + 774

Same issue, Xcode 16.0 with macOS Sequoia 15.0, Xcode crash on startup. Below is my crash report, hope can fix this issue ASAP!!!

Process: Xcode [965] Path: /Applications/Xcode.app/Contents/MacOS/Xcode Identifier: com.apple.dt.Xcode Version: 16.0 (23051) Build Info: IDEApplication-23051000000000000~2 (16A242d) App Item ID: 497799835 App External ID: 869020508 Code Type: ARM-64 (Native) Parent Process: launchd [1] User ID: 502

Date/Time: 2024-09-30 16:37:18.0872 +0800 OS Version: macOS 15.0 (24A335) Report Version: 12 Anonymous UUID: 5BE52D4D-BC34-7AFE-DEF4-CFF8A5DCE23B

Time Awake Since Boot: 71 seconds

System Integrity Protection: enabled

Crashed Thread: 14

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

Termination Reason: Namespace SIGNAL, Code 6 Abort trap: 6 Terminating Process: Xcode [965]

Application Specific Information: abort() called

Application Specific Signatures: NSInvalidArgumentException

Application Specific Backtrace 0: 0 CoreFoundation 0x0000000199f20ec0 exceptionPreprocess + 176 1 DVTFoundation 0x00000001023605cc DVTFailureHintExceptionPreprocessor + 388 2 libobjc.A.dylib 0x0000000199a06cd8 objc_exception_throw + 88 3 CoreData 0x00000001a0db5f2c -[NSPersistentContainer loadStoreDescriptions:withCompletionHandler:] + 540 4 CoreData 0x00000001a0bd074c -[NSPersistentContainer loadPersistentStoresWithCompletionHandler:] + 264 5 XcodeCloudKit 0x0000000156054e2c $sSo21NSPersistentContainerC13XcodeCloudKitE24xcc_loadPersistentStoresSo0A16StoreDescriptionCyYaKFTY0 + 344 6 XcodeCloudKit 0x00000001562e2d99 $s13XcodeCloudKit11PersistenceO8CoreDataO11CoordinatorV4load33_18A3EDB99D4ACDAD00E5493367C885E4LL9containerySo21NSPersistentContainerC_tFyyYacfU0_TQ1 + 1 7 XcodeCloudKit 0x0000000155d116e1 $s13XcodeCloudKit14InternalNoticeV16getStartedUpsellACyFZyyYbScMYccfU_yyYacfU_TATQ0 + 1 8 XcodeCloudKit 0x0000000155d6a9f1 $sxIeAgHr_xs5Error_pIegHrzo_s8SendableRzlTR10Foundation3URLVSg_Tg5TQ0_ + 1 9 XcodeCloudKit 0x0000000155da5795 $s13XcodeCloudKit11BuildReportO12NotarizationO12DownloadViewV07contentH033_477E01FB72D1B7D4100D2FDEEEB762E1LL3forQrAA0G0O6StatusO_tFyyScMYccfU_yyYaScMYccfU_TATQ0_ + 1 10 libswift_Concurrency.dylib 0x0000000273569035 _ZL23completeTaskWithClosurePN5swift12AsyncContextEPNS_10SwiftErrorE + 1

Thread 0:: Dispatch queue: com.apple.RenderBox.Encoder 0 libsystem_kernel.dylib 0x199d869dc __open_nocancel + 8 1 libsystem_kernel.dylib 0x199d9a7f0 open$NOCANCEL + 64 2 libsystem_c.dylib 0x199c6b1fc fopen + 244 3 libCoreFSCache.dylib 0x1f5223440 open_data_file + 116 4 libCoreFSCache.dylib 0x1f52227d8 fscache_open_worker + 492 5 libCoreFSCache.dylib 0x1f52225bc fscache_open_with_key + 92 6 Metal 0x1a4b5f500 MTLCompilerFSCache::openSync() + 440 7 Metal 0x1a4b5f120 MTLCompilerFSCache::getElement(MTLUINT256_t, void**, unsigned long*) + 144 8 Metal 0x1a4b78b54 MultiLevelCacheBase::getElement(MTLUINT256_t const*, NSObject<OS_dispatch_data>&) + 120 9 Metal 0x1a4b791d8 MultiLevelBinaryCache::getElement(MTLHashKey const&, NSObject<OS_dispatch_data>&) + 104 10 Metal 0x1a4c8fc10 -[MTLCompiler compileRequestInternal:binaryArchives:failOnBinaryArchiveMiss:pipelineCache:sync:completionHandler:] + 504 11 AGXMetalG14X 0x16f56dd68 void AGX::Compiler::compileProgram<AGX::BackgroundObjectProgramKey>(AGX::BackgroundObjectProgramKey const&, NSArray<id<MTLBinaryArchive>>, void (AGCDeserializedReply const&, MTLCompilerError, NSString) block_pointer, bool) + 992 12 AGXMetalG14X 0x16f56e9d4 AGX::G14X::BackgroundObjectProgramVariant* AGX::Device<AGX::G14X::Encoders, AGX::G14X::Classes, AGX::G14X::ObjClasses>::tryFindOrCreateDriverProgramVariant<AGX::G14X::BackgroundObjectProgramVariant, AGX::BackgroundObjectProgramKey, AGX::G14X::BackgroundObjectProgram>(AGX::G14X::BackgroundObjectProgram*, AGX::BackgroundObjectProgramKey const&, NSArray<id<MTLBinaryArchive>>) + 668 13 AGXMetalG14X 0x16f59ef84 AGX::Framebuffer<AGX::G14X::Encoders, AGX::G14X::Classes, AGX::G14X::ObjClasses>::Framebuffer(AGXG14XFamilyDevice, AGX::G14X::CommandBuffer*, AGX::G14X::FramebufferDriverConfig const&, unsigned int, unsigned int, bool) + 7244 14 AGXMetalG14X 0x16f5a3f50 AGX::FramebufferGen3_3<AGX::G14X::Encoders, AGX::G14X::Classes, AGX::G14X::ObjClasses>::FramebufferGen3_3(AGXG14XFamilyDevice*, AGX::G14X::CommandBuffer*, AGX::G14X::FramebufferDriverConfig const&, unsigned int, unsigned int, bool) + 56 15 AGXMetalG14X 0x16f67b19c -[AGXG14XFamilyRenderContext initWithCommandBuffer:descriptor:subEncoderIndex:framebuffer:] + 2704 16 AGXMetalG14X 0x16f534000 -[AGXG14XFamilyCommandBuffer renderCommandEncoderWithDescriptor:] + 152 17 RenderBox 0x1b9ae1008 RB::RenderFrame::encode(RB::RenderFrame::EncoderData&, RB::RenderQueue&) + 80 18 RenderBox 0x1b9ae14c8 RB::RenderFrame::flush_pass(RB::RenderPass&, bool)::$_0::__invoke(void*) + 48 19 libdispatch.dylib 0x199c14658 _dispatch_client_callout + 20 20 libdispatch.dylib 0x199c23cd8 _dispatch_lane_barrier_sync_invoke_and_complete + 56 21 RenderBox 0x1b9ae0f30 RB::RenderFrame::flush_pass(RB::RenderPass&, bool) + 192 22 RenderBox 0x1b9b0c66c RB::RenderPass::~RenderPass() + 40 23 RenderBox 0x1b9af6634 RB::DisplayList::RootTexture::render(void*) + 304

Xcode 16.0 Crashing on macOS 15: NSInvalidArgumentException
 
 
Q