【发布时间】:2021-09-07 09:52:13
【问题描述】:
我正在尝试上传一个应用程序以使用 Test Flight 对其进行测试。一切顺利,直到实际上传失败并出现错误:
Distribution failed with errors:
App Store Connect Operation Error invalid Info.plist Key. The key 'NSExtension' in the Info.plist file is not valid. With error code
STATE_ERROR.VALIDATION_ERROR.90190 for id...'
我也明白了:
Distribution failed with errors:
App Store Connect Operation Error
ERROR ITMS-90190: "Invalid Info.plist Key. The key 'NSExtension' in the Info.plist file is not valid."
Info.plist 的相关部分是:
<plist version="1.0">
<dict>
<key>NSExtensionAttributes</key>
<dict>
<key>UNNotificationExtensionCategory</key>
<string>actionCategory</string>
<key>UNNotificationExtensionDefaultContentHidden</key>
<true/>
<key>UNNotificationExtensionInitialContentSizeRatio</key>
<integer>1</integer>
<key>UNNotificationExtensionUserInteractionEnabled</key>
<true/>
</dict>
<key>NSExtensionMainStoryboard</key>
<string>Main</string>
<key>NSExtensionPointIdentifier</key>
<string>com.apple.usernotifications.content-extension</string>
<key>NSExtensionPrincipalClass</key>
<string>$(PRODUCT_MODULE_NAME).NotificationService</string>
</dict>
</plist>
我知道 NSExtensionMainStoryboard 和 NSExtensionPrincipalClass 键是互斥的。我尝试只使用一个或另一个密钥提交并收到相同的结果。
我已经尽我所能使用 Apple 文档检查了这一点,但我无法弄清楚它有什么问题。
非常感谢任何帮助。
【问题讨论】:
标签: ios swift info.plist remote-notifications