【问题标题】:Not able to deploy flutter application to iOS Appstore无法将颤振应用程序部署到 iOS Appstore
【发布时间】:2020-10-17 17:14:05
【问题描述】:

在为 iOS Distribution 构建应用程序时,我在构建时遇到了以下问题,我在 google 上尝试了许多与此问题相关的可用方法,但尚未解决。

我应该如何将 Flutter 应用程序部署到 iOS Appstore?

 Warning: unable to build chain to self-signed root for signer "iPhone Distribution: Mark Davids (*********)"
    /Users/mark/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

Encountered error while building for device.

【问题讨论】:

标签: ios flutter app-store


【解决方案1】:

这是一个模糊的错误,但我的猜测是两件事中的一件。

  1. Flutter 碎屑阻碍了你的构建,你可以通过运行flutter clean 命令来修复它

  2. 您的证书无效。在过去处理这个问题时,我发现最简单的解决方法是打开 XCode,将签名设置为无,从系统中清除证书和密钥,然后将它们重新添加到钥匙串中。

【讨论】:

  • 根据本文档flutter.dev/docs/deployment/ios,首先使用flutter build ios,之后出现上述错误
  • 您是否在 XCode 项目中配置了登录方式
  • 是的,我在 Xcode 项目中手动配置了签名,自动签名显示分析错误
  • 这是您的 XCode 证书的问题。这可能是:1.您的证书已过期 2.您的计算机上缺少密钥文件我最好的解决方案是从您的计算机中删除所有证书,然后从 developer.apple.com 生成一个新证书跨度>
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2017-05-19
  • 1970-01-01
  • 1970-01-01
  • 2020-07-05
  • 2019-05-07
相关资源
最近更新 更多