gpt4 book ai didi

ios - 命令 PhaseScriptExecution 因非零退出代码 flutter 而失败

转载 作者:行者123 更新时间:2023-11-29 11:26:51 25 4
gpt4 key购买 nike

当我尝试将 flutter 添加到现有的 iOS 应用程序时出现错误,它在 android 端运行良好,在 IOS 中我收到此错误消息:

/Users/mac/Library/Developer/Xcode/DerivedData/Fixit- dffmmspbqmueppghdvveloietubr/Build/Intermediates.noindex/Fixit.build/Debug- iphoneos/Fixit.build/Script-04B0EA9A232E6ABD008A0448.sh: line 3: /packages/flutter_tools/bin/xcode_backend.sh: No such file or directory

/Users/mac/Library/Developer/Xcode/DerivedData/Fixit- dffmmspbqmueppghdvveloietubr/Build/Intermediates.noindex/Fixit.build/Debug- iphoneos/Fixit.build/Script-04B0EA9A232E6ABD008A0448.sh: line 4: /packages/flutter_tools/bin/xcode_backend.sh: No such file or directory

Command PhaseScriptExecution failed with a nonzero exit code

在我的 pod 文件中,我在目标应用程序中添加了这个:

flutter_application_path = '⁨Users⁩/mac⁩/FixitApps⁩/customerApp⁩/fixit_flutter_customer_app/'
eval(File.read(File.join(flutter_application_path, '.ios', 'Flutter', 'podhelper.rb')), binding)

我遵循了本教程:https://github.com/flutter/flutter/wiki/Add-Flutter-to-existing-apps

最佳答案

如果您在构建阶段创建了一个用于构建 dart 代码的脚本文件,请将其删除并将其添加到您的 podfile 中:

flutter_application_path = '⁨Users⁩/mac⁩/FixitApps⁩/customerApp⁩/fixit_flutter_customer_app/'
eval(File.read(File.join(flutter_application_path, '.ios', 'Flutter', 'podhelper.rb')), binding)

install_all_flutter_pods(flutter_application_path)

关于ios - 命令 PhaseScriptExecution 因非零退出代码 flutter 而失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57944714/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com