Crashes on Xcode 16.2

Xcode 16.2 crashes when opening .swift or .xib files.

-------------------------------------
Translated Report (Full Report Below)
-------------------------------------

Process:               Xcode [54754]
Path:                  /Applications/Xcode-16.2.0.app/Contents/MacOS/Xcode
Identifier:            com.apple.dt.Xcode
Version:               16.2 (23507)
Build Info:            IDEApplication-23507000000000000~2 (16C5032a)
Code Type:             ARM-64 (Native)
Parent Process:        launchd [1]
User ID:               501

Date/Time:             2025-02-10 07:45:46.2320 +0900
OS Version:            macOS 15.3 (24D60)
Report Version:        12
Anonymous UUID:        C4102718-BC60-1A08-FB0D-3B7AAB19D6D0

Sleep/Wake UUID:       2FE8B1FA-D2A5-4F55-9DF5-2178F3212F84

Time Awake Since Boot: 120000 seconds
Time Since Wake:       33305 seconds

System Integrity Protection: enabled

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

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

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

Application Specific Information:
abort() called


Application Specific Signatures:
NSInvalidArgumentException

Application Specific Backtrace 0:
0   CoreFoundation                      0x00000001971f6e80 __exceptionPreprocess + 176
1   DVTFoundation                       0x000000010643788c DVTFailureHintExceptionPreprocessor + 388
2   libobjc.A.dylib                     0x0000000196cdecd8 objc_exception_throw + 88
3   CoreFoundation                      0x00000001972ac1d8 -[NSObject(NSObject) __retain_OA] + 0
4   CoreFoundation                      0x0000000197163830 ___forwarding___ + 1568
5   CoreFoundation                      0x0000000197163150 _CF_forwarding_prep_0 + 96
6   AssetCatalogFoundation              0x000000011c04aa68 -[IBICAbstractCatalogItem(IBICManifestArchivistDelegate) manifestArchivist:applyPropertiesFromChildEntry:toChild:results:] + 1380
7   AssetCatalogFoundation              0x000000011c10b3c8 -[IBICBundleIconSet manifestArchivist:applyPropertiesFromChildEntry:toChild:results:] + 112
8   AssetCatalogFoundation              0x000000011c065e0c -[IBICAppIconSet manifestArchivist:applyPropertiesFromChildEntry:toChild:results:] + 240
9   AssetCatalogFoundation              0x000000011c048704 -[IBICManifestArchivist childFromChildEntry:results:] + 192
10  AssetCatalogFoundation              0x000000011c048890 __73-[IBICManifestArchivist childrenFromContentsJSONChildrenEntries:results:]_block_invoke + 152
11  AssetCatalogFoundation              0x000000011c122668 IBWithObjectBufferResultingInArray + 72
12  AssetCatalogFoundation              0x000000011c0487b4 -[IBICManifestArchivist childrenFromContentsJSONChildrenEntries:results:] + 128
13  AssetCatalogFoundation              0x000000011c0490ec -[IBICManifestArchivist replaceChildrenFromFileSystemSnapshot:results:] + 456
14  AssetCatalogFoundation              0x000000011c0548fc -[IBICSlottedAsset replaceChildrenFromFileSystemSnapshot:results:] + 116
15  AssetCatalogFoundation              0x000000011c04924c -[IBICManifestArchivist replaceChildrenFromFileSystemSnapshot:results:] + 808
16  AssetCatalogFoundation              0x000000011c042e54 -[IBICFolder replaceChildrenFromFileSystemSnapshot:results:] + 116
17  AssetCatalogFoundation              0x000000011c08c8e8 -[IBICAbstractCatalog replaceChildrenWithDiskContent:] + 140
18  AssetCatalogFoundation              0x000000011c0798f0 -[IBICCatalogSynchronizer replaceCatalogWithContentsOfPathWhileItIsKnowThatSyncOperationsAreNotInflightAndAreDisabled:] + 140
19  AssetCatalogFoundation              0x000000011c0796f0 -[IBICCatalogSynchronizer replaceCatalogWithContentsOfPath:] + 104
20  AssetCatalogFoundation              0x000000011c077380 +[IBICCatalogSynchronizer synchronizerTakingOwnershipForCatalog:atPath:] + 92
21  AssetCatalogFoundation              0x000000011c0773e8 +[IBICCatalogSynchronizer synchronizerForCatalogAtPath:] + 68
22  AssetCatalogKit                     0x000000011a249b04 __69+[IBICCatalogMediaRepository retainedCatalogSynchronizerForFilePath:]_block_invoke + 52
23  AssetCatalogFoundation              0x000000011c0c2708 -[NSMutableDictionary(IBMutableDictionaryAdditions) ib_objectForKey:creatingIfNecessaryWithBlock:] + 100
24  AssetCatalogKit                     0x000000011a249a60 +[IBICCatalogMediaRepository retainedCatalogSynchronizerForFilePath:] + 136
25  AssetCatalogKit                     0x000000011a24b660 -[IBICCatalogMediaRepository _addSynchronizerForCatalogAtPath:] + 48
26  AssetCatalogKit                     0x000000011a24b12c __104-[IBICCatalogMediaRepository fileReferenceObserverDidReportUpdatedAndAddedResourcesByPath:removedPaths:]_block_invoke + 544
27  AssetCatalogKit                     0x000000011a24acd8 -[IBICCatalogMediaRepository notifyObserversAfterPossiblyMutatingWithBlock:] + 88
28  AssetCatalogKit                     0x000000011a24aed8 -[IBICCatalogMediaRepository fileReferenceObserverDidReportUpdatedAndAddedResourcesByPath:removedPaths:] + 132
29  IDEKit                              0x000000010a4f0e80 __54-[IDEContainerContentsMediaRepository _startObserving]_block_invoke + 596
30  IDEFoundation                       0x000000010ea491c8 -[IDEContainerContentProductionCoordinator deliverPendingResults:] + 172
31  DVTFoundation                       0x0000000106618994 __48-[DVTDelayedInvocation initWithTarget:selector:]_block_invoke + 24
32  DVTFoundation                       0x0000000106619a2c -[DVTDelayedInvocation runBlock:] + 272
33  Foundation                          0x00000001984026b4 __NSFirePerformWithOrder + 296
34  CoreFoundation                      0x0000000197183be8 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 36
35  CoreFoundation                      0x0000000197183ad4 __CFRunLoopDoObservers + 552
36  CoreFoundation                      0x0000000197183104 __CFRunLoopRun + 788
37  CoreFoundation                      0x0000000197182734 CFRunLoopRunSpecific + 588
38  HIToolbox                           0x00000001a26f1530 RunCurrentEventLoopInMode + 292
39  HIToolbox                           0x00000001a26f7348 ReceiveNextEventCommon + 676
40  HIToolbox                           0x00000001a26f7508 _BlockUntilNextEventMatchingListInModeWithFilter + 76
41  AppKit                              0x000000019acfa848 _DPSNextEvent + 660
42  AppKit                              0x000000019b660c24 -[NSApplication(NSEventRouting) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 688
43  AppKit                              0x000000019aced874 -[NSApplication run] + 480
44  IDEKit                              0x000000010a278f14 -[IDEApplication run] + 192
45  AppKit                              0x000000019acc4068 NSApplicationMain + 888
46  dyld                                0x0000000196d1c274 start + 2840

Xcode is crashing only opening an old xib file? Can you file a bug and provide that xib file inside a simple focused project that shows the crash?

Once you open the bug report, please post the FB number here for my reference.

If you have any questions about filing a bug report, take a look at Bug Reporting: How and Why?

Albert Pascual
  Worldwide Developer Relations.

This issue has been solved.

Xcode was crashing regardless of which file was opened.

The crash occurred when linking a .xcframework using Swift Package Manager, which had been converted using Xcode 14.2 with the following command:

swift run --package-path .project -c release make-xcframework -ios source.framework -output ./

The crash do not occurred by converting the framework using Xcode 16.2 instead.

Crashes on Xcode 16.2
 
 
Q