我正在尝试上传一个应用程序,以便使用试飞来测试它。在实际上传失败之前,一切都很顺利,并出现错误:
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和NSExtension-PrincipalClass密钥是互斥的。我尝试过只提交一个或另一个密钥,但收到了相同的结果。
我已经用苹果文档尽我所能检查了这个,但我不知道它出了什么问题。
非常感谢您的帮助。
您的应用程序的Info.plist
有NSExtension
密钥吗?只有扩展的Info.plist
应该包含NSExtension
属性。