【问题标题】:How to resolve error of "errSecInternalComponent" while building archive for appstore?为应用商店构建存档时如何解决“errSecInternalComponent”错误?
【发布时间】:2020-10-20 02:02:24
【问题描述】:

我正在尝试将 Flutter 应用程序提交到 Appstore。以下是我遵循的步骤:

已删除所有证书和配置文件

创建/添加 IOS 分发证书

创建 IOS 配置文件

添加 IOS 配置文件

清洁应用

构建然后运行应用程序

在构建设置中设置代码设计和配置文件

大量的谷歌搜索 > 没有成功

基本上,面对“errSecInternalComponent”的错误

这是我得到的错误:

 Warning: unable to build chain to self-signed root for signer "iPhone Distribution: Johnny  (**********)"
    /Users/johnny/Downloads/chat_app-master 2/build/ios/Release-iphoneos/Runner.app/Frameworks/App.framework/App: errSecInternalComponent
    Command PhaseScriptExecution failed with a nonzero exit code
    note: Using new build system
    note: Building targets in parallel
    note: Planning build
    note: Constructing build description

【问题讨论】:

    标签: ios flutter app-store app-store-connect


    【解决方案1】:

    您的证书有问题,这就是您收到此警告的原因。您需要生成一个新的。

    试试这个: xcode -> 首选项 -> 帐户 -> 选择帐户 -> 管理证书 -> 点击弹出窗口左下方的(+)图标 -> ios 开发

    【讨论】:

    • 它没有为iOS开发提供选项,它为Apple开发提供了选项,我应该如何进行?
    • 添加 Apple 开发也应该可以工作。确保在 iOS 设备上转到常规 -> 设备管理 -> 并单击您的帐户...
    【解决方案2】:

    第一次用 Xcode 构建,Xcode 会要求你更新钥匙串,点击总是允许。 之后,您的命令行构建将起作用。

    【讨论】:

      【解决方案3】:

      由于问题已经解决,这可能不是您的答案。 但是,我想与社区分享这一点,因为我在另一个设置中偶然发现了相同的错误消息。

      我一直在使用 Xcode 在用作 gitlab 运行器的 MacMini 上构建 iOS 应用程序。 手动构建应用程序,但每当我推送到存储库并开始自动构建时,就会出现此错误。

      将 ruby​​ 版本更新到比 BigSur 提供的版本更高的版本并重新安装 gitlab-runner 解决了我的问题。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2019-08-18
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多