Hello,
I have successfully implemented AppIntents
with custom parameters based on AppEntity
as described in the WWDC video https://developer.apple.com/videos/play/wwdc2022/10032/.
When running the app in the iOS Simulator, everything works great.
When trying to archive manually for upload to TestFlight, or using Xcode Cloud the Extract App Intents Metadata archive step fails with the following error:
appintentsmetadataprocessor[89770:29069096] Starting appintentsmetadataprocessor export
appintentsmetadataprocessor[89770:29069096] Writing Metadata.appintents
appintentsmetadataprocessor[89770:29069096] Metadata root: /Users/***/Library/Developer/Xcode/DerivedData/YYY/Build/Intermediates.noindex/ArchiveIntermediates/ZZZ/InstallationBuildProductsLocation/Applications/GGG.app/Metadata.appintents
appintentsmetadataprocessor[89770:29069096] Writing ExtractedAppShortcutsMetadata.stringsdata file
appintentsmetadataprocessor[89770:29069096] Writing ExtractedParameterSummaryMetadata.stringsdata file
appintentsmetadataprocessor[89770:29069096] Warning: error: could not determine type for property: MyApp.MyIntent.parameter from binary
Command ExtractAppIntentsMetadata emitted errors but did not return a nonzero exit code to indicate failure
The resulting build can actually be uploaded to TestFlight, but the AppIntent does not work properly when used in Shortcuts. The custom typed parameter is shown as in the Shortcuts app as "generic" parameter and can not be properly populated, queried.