命令PhaseScriptExecution失败,退出代码波动非零 [英] Command PhaseScriptExecution failed with a nonzero exit code flutter
本文介绍了命令PhaseScriptExecution失败,退出代码波动非零的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我尝试将Flutter添加到现有的iOS应用程序时出现错误,它在android方面运行良好,在IOS中,我收到此错误消息:
I got an error when I tried to add flutter to an existing iOS app it worked fine on the android side, in IOS I got this error message :
/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文件中,我在目标应用程序中添加了此文件:
inside my pod file i added this inside target application:
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
推荐答案
如果在构建阶段创建脚本文件以构建飞镖代码,请将其删除并将其添加到您的podfile中:
if you create a script file in the build phase for building dart code remove it and add this to your 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)
这篇关于命令PhaseScriptExecution失败,退出代码波动非零的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文