我创建了一个 iOS 应用扩展,并在扩展的 plist IntentsSupported 数组中定义了一个条目 INPlayMediaIntent。一切都很好。但是几天后(WWDC 2019)我无法将应用程序提交到 TestFlight/App Store Connect。
我按照 Apple 的说明修复了这些错误:
- ITMS-90626:无效的 Siri 支持 - 没有为 ... 语言中的 INPlayMediaIntent 提供示例短语。请参考“ https://developer.apple.com/documentation/sirikit/registering_custom_vocabulary_with_sirikit/global_vocabulary_reference/intent_phrases ”
- ITMS-90626:无效的 Siri 支持 - 没有为捆绑包指定意图参数……语言……词汇策略 #1
现在我试图在 AppIntentVocabulary.plist 中提供一个意图参数:
<dict>
<key>ParameterVocabularies</key>
<array>
<dict>
<key>ParameterNames</key>
<array>
<string>INPlayMediaIntent.mediaItems</string>
</array>
根据这些 App Store 电子邮件,我尝试了各种字符串,但都错了:
ITMS-90626:无效的 Siri 支持 - “INPlayMediaIntent.mediaItems”不是订阅意图的受支持的意图参数
ITMS-90626:无效的 Siri 支持 - “INPlayMediaIntent.mediaContainer”不是订阅意图的受支持的意图参数
ITMS-90626:无效的 Siri 支持 - “INPlayMediaIntent.identifier”不是订阅意图的受支持的意图参数
INPlayMediaIntent的有效参数名称是什么?
这可能很容易,因为 Apple 在这里有一个 INPlayMediaIntent 示例项目,我曾经为我的项目学习过:
https://developer.apple.com/documentation/sirikit/media/playing_media_through_siri_shortcuts
但是:这个项目似乎不是最新的,因为它缺少最近似乎需要的 AppIntentVocabulary.plist。