【问题标题】:ERROR ITMS-90205: "Invalid Bundle. The bundle at 'NotificationServiceExtension.appex' contains disallowed nested bundles."错误 ITMS-90205:“无效的捆绑包。'NotificationServiceExtension.appex' 处的捆绑包包含不允许的嵌套捆绑包。”
【发布时间】:2023-03-07 03:44:01
【问题描述】:

错误 ITMS-90206:“无效的捆绑包。'app.app/PlugIns/OneSignalNotificationServiceExtension.appex' 的捆绑包包含不允许的文件 'Frameworks'。” 错误 ITMS-90206:“无效的捆绑包。'app/PlugIns/OneSignalNotificationServiceExtension.appex' 的捆绑包包含不允许的文件 'Frameworks'。”

在我的应用项目中

Always Embed Swift Standard Library = No

Embedded Content Contains Swift = Yes

在我的目标中

Always Embed Swift Standard Library = Yes

Embedded Content Contains Swift = Yes

在 OneSignalNotificationServiceExtension 中

Always Embed Swift Standard Library = No

Embedded Content Contains Swift = NO

当我尝试将 OneSignalNotificationServiceExtension 更改为 YES 时,它显示错误 import OneSignal is not No such module 'OneSignal

OneSignal 是用 Swift 编写的,应该使用 use_frameworks 导入!

【问题讨论】:

    标签: swift xcode app-store-connect onesignal application-loader


    【解决方案1】:

    OneSignalNotificationService 目标 -> 构建阶段 -> 运行脚本

    cd "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/"
    if [[ -d "Frameworks" ]]; then
    rm -fr Frameworks
    fi
    

    【讨论】:

      【解决方案2】:

      在构建目标的常规设置中,您会为每个目标列出框架和库。与每个框架对应的是设置“嵌入并签名”或“不嵌入”。将其“嵌入并签名”在应用程序目标中,而“不嵌入”在链接框架的所有其他目标中可以解决问题。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2015-01-25
        • 2014-11-21
        • 2015-08-02
        • 2014-11-03
        • 2014-12-23
        • 2016-01-26
        • 1970-01-01
        相关资源
        最近更新 更多