Hi,
After upgrading to Xcode 15.3 (15E204a) AppIntents unexpectedly stopped working on iOS 16. System error occurs when you try to run AppIntent on device with iOS 16, Shortcuts app just shows error alert.
There are errors in device's logs: error <datetime> <TargetName> Could not find an intent with identifier <AppIntentIdentifier>, mangledTypeName: Optional("")
It seems to be an issue with extract.actionsdata file, generated by appintentsmetadataprocessor. "mangledTypeName" parameter is empty for action descriptors, though it was fulfilled when building with Xcode 14.2 and different version of generator. If I manually set this property in xcarchive and sign it everything works fine.
The issue is reproducible with Xcode 15.4 which is currently in beta.
Have anyone experienced this or have any solution more solid than editing metadata files after build?
The release notes of Xcode 15.3 has another workaround:
https://developer.apple.com/documentation/xcode-release-notes/xcode-15_3-release-notes
AppIntents may fail to execute when the target’s minimum deployment target is iOS 15.0 or earlier (123798206) (FB13664020)
Workaround: Add the ENABLE_APPINTENTS_DEPLOYMENT_AWARE_PROCESSING=NO build flag to your target(s)