CSSearchableItemAttributeSet.associateAppEntity(_:priority:) causes "Failed to request donation" warning

I'm trying to associate a Core Spotlight item with an AppEntity during indexing by calling CSSearchableItemAttributeSet.associateAppEntity(_:priority:). However, every time I do so, I get the following warning in the console:

{CSInlineDonation[async]: "my.app.bundle.identifier" add-update-items:1 delete-items:0}: Failed to request donation Error Domain=CSIndexErrorDomain Code=-1000 "Failed to request donation" UserInfo={NSDebugDescription=Failed to request donation, NSUnderlyingError=0x143f54ae0 {Error Domain=com.apple.CascadeSets.Set Code=3 "Access denied (<BMResource: set/App.Intents.IndexedEntity [CCSetDescriptor - key: sourceIdentifier value: my.app.bundle.identifier]>)" UserInfo={NSLocalizedDescription=Access denied (<BMResource: set/App.Intents.IndexedEntity [CCSetDescriptor - key: sourceIdentifier value: my.app.bundle.identifier]>), NSUnderlyingError=0x143f54ba0 {Error Domain=BMAccessErrorDomain Code=11 "Failed to prepare resource" UserInfo={NSLocalizedDescription=Failed to prepare resource}}}}}

The relevant code is:

let attributeSet = CSSearchableItemAttributeSet(contentType: .audiovisualContent)
let appEntity = VideoAppEntity(...)
attributeSet.associateAppEntity(appEntity)

The Spotlight item itself is indexed successfully, but the associateAppEntity call appears to fail with an "Access denied" error related to App.Intents.IndexedEntity.

Has anyone encountered this before? Are there additional entitlements, App Intents configuration requirements, or indexing prerequisites needed for associateAppEntity(_:priority:) to work correctly?

Please file Feedback, with a sysdiagnose if possible, and post the number, we'll take a look.

Thanks! Feedback FB23186946

I'm noticing the same. Can you please tell use where to file Core Spotlight feedback in the Feedback App? I can't find the technology in the drop down. Thank you.

CSSearchableItemAttributeSet.associateAppEntity(_:priority:) causes "Failed to request donation" warning
 
 
Q