简体   繁体   English

Flutter ios 构建失败

[英]Flutter ios build fails

I was successfully able to build my app for android in codemagic, but ios is just killing me.我成功地在 codemagic 中为 android 构建了我的应用程序,但是 ios 正在杀死我。 I got all sorts of errors I've seen for the first time.我遇到了我第一次看到的各种错误。 Many of them I hope I resolved successfully, but I haven't find the answer for this one:我希望我能成功解决其中的许多问题,但我还没有找到这个问题的答案:

/Users/builder/Library/Developer/Xcode/DerivedData/Runner-edaimyiflreloheqntgnhkmwcclv/Build/Intermediates.noindex/Runner.build/Release-iphoneos/Runner.build/assetcatalog_generated_info.plist

    The path  does not exist
    Command PhaseScriptExecution failed with a nonzero exit code

So I did some googling, and if I understand correctly DerivedData hold the builds for the project.所以我做了一些谷歌搜索,如果我理解正确,DerivedData 会保存项目的构建。 I had a look into the folder and I didn't find the Runner-edaimyiflreloheqntgnhkmwcclv which explains the error.我查看了该文件夹,但没有找到解释错误的 Runner-edaimyiflreloheqntgnhkmwcclv。 However when I tried to build the app in xcode I had the same error except the Runner-***** directory was different and this time it was present with every other directory down to assetcatalog_generated_info.plist which then didn't make sense to me since it was present.但是,当我尝试在 xcode 中构建应用程序时,我遇到了同样的错误,除了 Runner-***** 目录不同,这一次它与其他所有目录都存在于 assetscatalog_generated_info.plist 中,然后没有意义我,因为它在场。

I tried flutter clean and wanted to build it again, but the same error would come up.我试过 flutter clean 并想再次构建它,但会出现同样的错误。

The link github.com/flutter/flutter/issues/23465 from @MikhailTokarev helped big time.来自@MikhailTokarev 的链接 github.com/flutter/flutter/issues/23465 帮助很大。

By the end of the thread scut204 commented:在线程 scut204 的末尾评论道:

Select "Run script only when installing" in Xcode Build Phase script.
Encountered and solved.
Tutorial update demanding.

That solved it.那解决了它。

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

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