I was having similar issues and finally resolved it. For me it came down to the typeDisplayRepresentation
static var on all of my AppEntity structs.
I was declaring typeDisplayRepresentation
as a computed var returning the typeDisplayName
property.
I had to change typeDisplayRepresentation
to be a stored property that was equal to the typeDisplayName
property, or whatever relevant String.
EG:
Broken:
static var typeDisplayRepresentation: TypeDisplayRepresentation {
TypeDisplayRepresentation(name: typeDisplayName)
}
static var typeDisplayName: LocalizedStringResource = "Some Name"
Working:
static var typeDisplayRepresentation: TypeDisplayRepresentation = TypeDisplayRepresentation(name: typeDisplayName)
OR
static var typeDisplayRepresentation: TypeDisplayRepresentation = TypeDisplayRepresentation(name: "Some Name")
Additionally if that isn't your particular problem you can check your build log details in Xcode. There’s an “App Intents Metadata Process” step towards the end that might have details in there.
For me searching for App Intents in the build log details revealed an error naming typeDisplayRepresentation