Xcode 16 crash trying to remove a package dependency

Feedback Submitted FB13898610 Xcode crashes with below. Pressing the "-" to remove a package dependancy.

Solutions most welcome

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 [27376]

Application Specific Information:
abort() called


Application Specific Signatures:
NSInvalidArgumentException

Application Specific Backtrace 0:
0   CoreFoundation                      0x00007ff815134dc6 __exceptionPreprocess + 242
1   DVTFoundation                       0x000000011257fd3e DVTFailureHintExceptionPreprocessor + 448
2   libobjc.A.dylib                     0x00007ff814c24e9d objc_exception_throw + 48
3   CoreFoundation                      0x00007ff81504f400 -[__NSPlaceholderDictionary initWithObjects:forKeys:count:] + 604
4   CoreFoundation                      0x00007ff81504f18a +[NSDictionary dictionaryWithObjects:forKeys:count:] + 49
5   DevToolsCore                        0x000000012118ca09 -[PBXTarget removePackageProductDependencies:] + 1053
6   DevToolsCore                        0x00000001211b1c65 -[PBXTarget packageReferenceWillBeRemoved:] + 273
7   CoreFoundation                      0x00007ff8150b742a -[NSArray makeObjectsPerformSelector:withObject:] + 252
8   DevToolsCore                        0x000000012116200c -[PBXProject(PBXTargetedNotifications) packageReferenceWillBeRemoved:] + 267
9   DevToolsCore                        0x0000000121157026 -[PBXProject removePackageReference:] + 219
10  Xcode3UI                            0x0000000128db10c8 __56-[Xcode3PackageReferenceListViewController removeItems:]_block_invoke + 319
11  Xcode3UI                            0x0000000128db0c7b -[Xcode3PackageReferenceListViewController removeItems:] + 1925
12  AppKit                              0x00007ff81891e34d -[NSApplication(NSResponder) sendAction:to:from:] + 337
13  IDEKit                              0x00000001162a8e5f __37-[IDEApplication sendAction:to:from:]_block_invoke + 315
14  DVTFoundation                       0x000000011257f51d DVTInvokeWithFailureHint + 78
15  IDEKit                              0x0000000116202bc0 -[IDEApplicationController application:setFailureHintMessage:duringBlock:] + 118
16  IDEKit                              0x00000001162a8f2b -[IDEApplication _invokeWithFailureHint:block:] + 105
17  IDEKit                              0x00000001162a8cb8 -[IDEApplication sendAction:to:from:] + 333
18  AppKit                              0x00007ff81891e1c3 -[NSControl sendAction:to:] + 86
19  AppKit                              0x00007ff81891e0f5 __26-[NSCell _sendActionFrom:]_block_invoke + 131
20  AppKit                              0x00007ff81891dffe -[NSCell _sendActionFrom:] + 171
21  AppKit                              0x00007ff81891df46 -[NSButtonCell _sendActionFrom:] + 96
22  AppKit                              0x00007ff81891ae32 NSControlTrackMouse + 1823
23  AppKit                              0x00007ff81891a6ef -[NSCell trackMouse:inRect:ofView:untilMouseUp:] + 125
24  AppKit                              0x00007ff81891a5b6 -[NSButtonCell trackMouse:inRect:ofView:untilMouseUp:] + 666
25  AppKit                              0x00007ff8189199ab -[NSControl mouseDown:] + 666
26  AppKit                              0x00007ff818918353 -[NSWindow(NSEventRouting) _handleMouseDownEvent:isDelayedEvent:] + 4582
27  AppKit                              0x00007ff818891177 -[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:] + 313
28  AppKit                              0x00007ff818890e23 -[NSWindow(NSEventRouting) sendEvent:] + 345
29  IDEKit                              0x0000000116269d6a -[IDEWorkspaceWindow sendEvent:] + 158
30  AppKit                              0x00007ff819043470 -[NSApplication(NSEventRouting) sendEvent:] + 1456
31  IDEKit                              0x00000001162a8a7f -[IDEApplication sendEvent:] + 308
32  AppKit                              0x00007ff818bfe8de -[NSApplication _handleEvent:] + 65
33  AppKit                              0x00007ff81872209a -[NSApplication run] + 640
34  IDEKit                              0x00000001162a888a -[IDEApplication run] + 54
35  AppKit                              0x00007ff8186f5ff3 NSApplicationMain + 816
36  dyld                                0x00007ff814c59366 start + 1942


Kernel Triage:
VM - (arg = 0x3) mach_vm_allocate_kernel failed within call to vm_map_enter


Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib        	    0x7ff814fac14a __pthread_kill + 10
1   libsystem_pthread.dylib       	    0x7ff814fe4ebd pthread_kill + 262
2   libsystem_c.dylib             	    0x7ff814f0aa79 abort + 126
3   IDEKit                        	       0x116226509 +[IDEAssertionHandler _handleAssertionWithLogString:assertionSignature:assertionReason:extraBacktrace:] + 1178
4   IDEKit                        	       0x1162278c3 -[IDEAssertionHandler handleUncaughtException:] + 749
5   IDEKit                        	       0x116227c00 IDEHandleUncaughtException + 94
6   IDEKit                        	       0x1162a9370 -[IDEApplication reportException:] + 79
7   AppKit                        	    0x7ff818722129 -[NSApplication run] + 783
8   IDEKit                        	       0x1162a888a -[IDEApplication run] + 54
9   AppKit                        	    0x7ff8186f5ff3 NSApplicationMain + 816
10  dyld                          	    0x7ff814c59366 start + 1942

Thank you for taking the time to file FB13898610, our teams will take a look.

Xcode 16 crash trying to remove a package dependency
 
 
Q