Xcode crashes when saving .intentdefinition file with configuration intent

Hi everyone,

I’m experiencing a consistent crash in Xcode 16.4 (on macOS 15.5 when working with SiriKit .intentdefinition files.

🐛 Issue Whenever I try to add or modify an intent and then hit ⌘S to save, Xcode immediately crashes.

This happens both with:

Newly created .intentdefinition files Existing ones already linked to a Widget target I’ve tried:

Clearing DerivedData Recreating the intent file from scratch Minimal edits (only 1 intent and 1 parameter) Setting correct IntentsSupported in the Info.plist Editing in Xcode and using Target Membership properly Still, Xcode crashes consistently when I save.

⚙️ Environment Xcode: 16.4 macOS: 15.5 Mac: Mac Studio M2 Max ✅ Workaround I’m currently editing the .intentdefinition file manually in source mode or using a text editor, which avoids the crash — but it’s far from ideal.

💬 Question Is anyone else experiencing this? Is there a known fix or workaround that allows safe editing in Interface Builder? Any response from Apple engineering would be greatly appreciated.

Thanks!


Translated Report (Full Report Below)

Process: Xcode [6971] Path: /Applications/Xcode.app/Contents/MacOS/Xcode Identifier: com.apple.dt.Xcode Version: 16.4 (23792) Build Info: IDEApplication-23792000000000000~2 (16F6) App Item ID: 497799835 App External ID: 874973124 Code Type: ARM-64 (Native) Parent Process: launchd [1] User ID: 501

Date/Time: 2025-07-01 18:10:42.9453 +0200 OS Version: macOS 15.5 (24F74) Report Version: 12 Anonymous UUID: 63C6DB2E-A2A0-DDAE-1DC2-8B77CC9535AE

Sleep/Wake UUID: 276F6F44-F58B-459D-98EC-81A031BF3334

Time Awake Since Boot: 62000 seconds Time Since Wake: 5081 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 ******, Code 6 Abort trap: 6 Terminating Process: Xcode [6971]

Application Specific Information: abort() called

Application Specific Signatures: NSInvalidArgumentException

Application Specific Backtrace 0: 0 CoreFoundation 0x000000018141aca0 __exceptionPreprocess + 176 1 DVTFoundation 0x00000001026e9c60 DVTFailureHintExceptionPreprocessor + 388 2 libobjc.A.dylib 0x0000000180edeb90 objc_exception_throw + 88 3 CoreFoundation 0x00000001814d7b90 -[NSObject(NSObject) __retain_OA] + 0 4 CoreFoundation 0x0000000181388ddc forwarding + 1500 5 CoreFoundation 0x0000000181388740 _CF_forwarding_prep_0 + 96 6 CoreFoundation 0x000000018138eed8 __CFSimpleMergeSort + 148 7 CoreFoundation 0x000000018138ef5c __CFSimpleMergeSort + 280 8 CoreFoundation 0x000000018138ecec CFSortIndexes + 332 9 CoreFoundation 0x00000001813c1df8 -[NSMutableArray sortRange:options:usingComparator:] + 448 10 IDEIntentBuilderEditor 0x000000033719adc8 ___IDEIntentBuilderUpdateBlock_block_invoke + 120 11 IDEIntentBuilderEditor 0x000000033719a170 -[IDEIntentBuilderProductSettingsManager _updateAppBuildableProductUserActivityTypes:withIntents:] + 332 12 IDEIntentBuilderEditor 0x0000000337199b08 -[IDEIntentBuilderProductSettingsManager updateProductSettings] + 648 13 IDEIntentBuilderEditor 0x00000003371a66e8 -[IDEIntentBuilderDocument writeSafelyToURL:ofType:forSaveOperation:error:] + 84 14 AppKit 0x0000000186173a50 __85-[NSDocument(NSDocumentSaving) _saveToURL:ofType:forSaveOperation:completionHandler:]_block_invoke_2.440 + 284 15 AppKit 0x000000018617383c __85-[NSDocument(NSDocumentSaving) _saveToURL:ofType:forSaveOperation:completionHandler:]_block_invoke.439 + 536 16 AppKit 0x00000001861711c0 __85-[NSDocument(NSDocumentSaving) _saveToURL:ofType:forSaveOperation:completionHandler:]_block_invoke_3.372 + 1944 17 AppKit 0x0000000186174064 __85-[NSDocument(NSDocumentSaving) _saveToURL:ofType:forSaveOperation:completionHandler:]_block_invoke_2.467 + 252 18 IDEKit 0x00000001068f6590 __50-[IDEEditorDocument continueFileAccessUsingBlock:]_block_invoke.51 + 48 19 AppKit 0x0000000185a5f864 -[NSDocument(NSDocumentSerializationAPIs) continueFileAccessUsingBlock:] + 220 20 IDEKit 0x00000001068f64dc -[IDEEditorDocument continueFileAccessUsingBlock:] + 384 21 AppKit 0x000000018616dce0 __119-[NSDocument(NSDocumentSaving) _fileCoordinator:asynchronouslyCoordinateReadingContentsAndWritingItemAtURL:byAccessor:]_block_invoke_2 + 176 22 IDEKit 0x00000001068f67e4 __68-[IDEEditorDocument continueAsynchronousWorkOnMainThreadUsingBlock:]_block_invoke + 48 23 AppKit 0x00000001859dfd28 __62-[NSDocumentController(NSInternal) _onMainThreadInvokeWorker:]_block_invoke_3 + 188 24 AppKit 0x00000001859e62cc ___NSMainRunLoopPerformBlockInModes_block_invoke + 44 25 CoreFoundation 0x00000001813a9874 CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK + 28 26 CoreFoundation 0x00000001813a9784 __CFRunLoopDoBlocks + 352 27 CoreFoundation 0x00000001813a8c30 __CFRunLoopRun + 2384 28 CoreFoundation 0x00000001813a7c58 CFRunLoopRunSpecific + 572

Xcode crashes when saving .intentdefinition file with configuration intent
 
 
Q