无法将Flutter应用程序部署到iOS Appstore

时间:2020-06-27 04:46:04

标签: ios flutter app-store

在为iOS发行版构建应用程序时,我遇到了以下构建问题,但我尝试了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.

1 个答案:

答案 0 :(得分:0)

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

  1. 有Flutter碎屑阻止了您的构建,您可以通过运行flutter clean命令来修复该问题

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