简体   繁体   English

Flutter无法建立IOS存档

[英]Flutter unable to build IOS archive

i am trying to build a IOS IPA for generic device, followed all the instructions, added signing certificates, team etc. but i am unable to build the product.我正在尝试为通用设备构建一个 IOS IPA,遵循所有说明,添加签名证书、团队等,但我无法构建产品。 any one please help me to resolve this issue.任何人请帮我解决这个问题。

here is my signing config.这是我的签名配置。 checked to automatically managed.检查自动管理。 added device in developer site.在开发人员站点中添加了设备。

在此处输入图像描述

sent 435785657 bytes received 92 bytes 58104766.53 bytes/sec total size is 435732165 speedup is 1.00 Warning: unable to build chain to self-signed root for signer "Apple Development: ********" /Users/Saif/Library/Developer/Xcode/DerivedData/Runner-bemaxobcrmqabgcgltuauohrwrje/Build/Intermediates.noindex/ArchiveIntermediates/Runner/InstallationBuildProductsLocation/Applications/myapp.app/Frameworks/App.framework/App: errSecInternalComponent Command PhaseScriptExecution failed with a nonzero exit code发送 435785657 字节 接收 92 字节 58104766.53 字节/秒 总大小为 435732165 加速比为 1.00 警告:无法为签名者“Apple Development:********”/Users/Saif/Library/ 构建自签名根链Developer/Xcode/DerivedData/Runner-bemaxobcrmqabgcgltuauohrwrje/Build/Intermediates.noindex/ArchiveIntermediates/Runner/InstallationBuildProductsLocation/Applications/myapp.app/Frameworks/App.framework/App: errSecInternalComponent 命令 PhaseScriptExecution 失败,退出代码非零

在此处输入图像描述

i am just stuck on this error for about 3 days.我只是在这个错误上停留了大约 3 天。 tried each and every solution available on stackoverflow and apple developer stack.尝试了 stackoverflow 和 apple developer stack 上可用的每一个解决方案。

Flutter: 2.0.1 Xcode: 11.2.1 Flutter:2.0.1 Xcode:11.2.1

There's nothing any issue i think, the reason behind this i have an old version of xcode, i just update the xcode for newest version and than its all fine.我认为没有任何问题,这背后的原因是我有一个旧版本的 xcode,我只是将 xcode 更新为最新版本,而且一切都很好。

  1. Run flutter build ipa运行flutter build ipa
  2. Once build is done.一旦构建完成。 Open Runner.xcarchive打开Runner.xcarchive
  3. Open Runner.xcarchive with Xcode使用 Xcode 打开Runner.xcarchive
  4. It'll take you to the Distribute App page so you can upload the app它会带你到分发应用程序页面,这样你就可以上传应用程序

As per the docs:根据文档:

https://docs.flutter.dev/deployment/ios#create-a-build-archive-with-xcode https://docs.flutter.dev/deployment/ios#create-a-build-archive-with-xcode

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM