【问题标题】:Distributing app to App Store Connect upload fails with invalid NSExtention key error in info.plist将应用分发到 App Store Connect 上传失败,info.plist 中出现无效的 NSExtention 密钥错误
【发布时间】: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


    【解决方案1】:

    您的应用程序的 Info.plist 是否有 NSExtension 密钥?只有您的扩展程序的 Info.plist 应该包含 NSExtension 属性。

    【讨论】:

    • 是的!该扩展确实有自己的 info.plist。我从应用程序的 Info.plist 中删除了 NSExtension 密钥,并将存档成功上传到 App Store Connect。非常感谢!
    猜你喜欢
    • 2021-06-18
    • 2023-01-15
    • 2021-02-06
    • 2022-06-21
    • 2021-04-23
    • 1970-01-01
    • 2018-05-18
    • 2015-08-03
    • 2021-04-19
    相关资源
    最近更新 更多