英文:
Flutter iOS : Command PhaseScriptExecution failed with a nonzero exit code
问题
无法构建Flutter iOS应用程序。
**仍然找不到解决此问题的线索。
使用Flutter 3.7.12和Xcode 14.2。
M1 Mac
尝试了多种解决方法,但没有找到确切的解决方案。**
新用户
生成了2个警告。
在文件包含的文件中
/ Users / sus / .pub-cache / hosted / pub.dev / webengage_flutter-1.2.4 / ios / Classes / WebEn
gagePlugin.m:3:
^
livhjpjdnrnhkjymr / Build / Intermediates.noindex / CrashReporter.build / Debug-iphonesim
ulator / CrashReporter iOS.build / Objects-normal / x86_64 / PLCrashLogWriter.o无法打开对象文件:没有此文件或目录
警告:(x86_64)
/ Users / shekhargupta / Library / Developer / Xcode / DerivedData / CrashReporter-akgtfajxycj
livhjpjdnrnhkjymr / Build / Intermediates.noindex / CrashReporter.build / Debug-iphonesim
ulator / CrashReporter iOS.build / Objects-normal / x86_64 / PLCrashAsync.o无法
打开对象文件:没有此文件或目录
警告:(x86_64)
/ Users / shekhargupta / Library / Developer / Xcode / DerivedData / CrashReporter-akgtfajxycj
livhjpjdnrnhkjymr / Build / Intermediates.noindex / CrashReporter.build / Debug-iphonesim
ulator / CrashReporter iOS.build / Objects-normal / x86_64 / PLCrashLogWriterEncoding.o
无法打开对象文件:没有此文件或目录
警告:(x86_64)
/ Users / shekhargupta / Library / Developer / Xcode / DerivedData / CrashReporter-akgtfajxycj
livhjpjdnrnhkjymr / Build / Intermediates.noindex / CrashReporter.build / Debug-iphonesim
ulator / CrashReporter iOS.build / Objects-normal / x86_64 / PLCrashReporter.o无法
打开对象文件:没有此文件或目录
警告:(x86_64)
/ Users / shekhargupta / Library / Developer / Xcode / DerivedData / CrashReporter-akgtfajxycj
livhjpjdnrnhkjymr / Build / Intermediates.noindex / CrashReporter.build / Debug-iphonesim
ulator / CrashReporter
iOS.build / Objects-normal / x86_64 / PLCrashReport-11249c1192c18cc76f5d36d106873855.o
无法打开对象文件:没有此文件或目录
警告:(x86_64)
/ Users / shekhargupta / Library / Developer / Xcode / DerivedData / CrashReporter-akgtfajxycj
livhjpjdnrnhkjymr / Build / Intermediates.noindex / CrashReporter.build / Debug-iphonesim
ulator / CrashReporter iOS.build / Objects-normal / x86_64 / PLCrashReportSystemInfo.o
无法打开对象文件:没有此文件或目录
警告:(x86_64)
/ Users / shekhargupta / Library / Developer / Xcode / DerivedData / CrashReporter-akgtfajxycj
livhjpjdnrnhkjymr / Build / Intermediates.noindex / CrashReporter.build / Debug-iphonesim
ulator / CrashReporter
iOS.build / Objects-normal / x86_64 / PLCrashReportApplicationInfo.o无法打开
对象文件:没有此文件或目录
警告:(x86_64)
结果包写入路径:
/var/folders/0z/nxwbg1xj73q7yjq_8_y4bq300000gp/T/flutter_tools.OE7sso/flutter_io
s_build_temp_dir95kwpx/temporary_xcresult_bundle
无法为模拟器构建应用程序。
在iPhone 14上启动应用程序时出错。
我尝试过的事情
- 清理flutter
- 安装最新的pods
- 在构建阶段上勾选基于依赖关系分析的选项
尝试了多种解决方法,还尝试了多个Xcode版本(14.1、14.0)
错误日志:https://drive.google.com/file/d/1io2e4lvr89i6tnnHmv6gjjQov7fXTSsJ/view?usp=share_link
英文:
Unable to build the Flutter iOS App.
**Still don't find clue to sort this issue.
Using Flutter 3.7.12 Xcode 14.2.
M1 Mac
After trying multiple workaround I don't find exact solution**
^~~~~~~~~~
newUser
2 warnings generated.
In file included from
/Users/sus/.pub-cache/hosted/pub.dev/webengage_flutter-1.2.4/ios/Classes/WebEn
gagePlugin.m:3:
^
livhjpjdnrnhkjymr/Build/Intermediates.noindex/CrashReporter.build/Debug-iphonesim
ulator/CrashReporter iOS.build/Objects-normal/x86_64/PLCrashLogWriter.o unable to
open object file: No such file or directory
warning: (x86_64)
/Users/shekhargupta/Library/Developer/Xcode/DerivedData/CrashReporter-akgtfajxycj
livhjpjdnrnhkjymr/Build/Intermediates.noindex/CrashReporter.build/Debug-iphonesim
ulator/CrashReporter iOS.build/Objects-normal/x86_64/PLCrashAsync.o unable to
open object file: No such file or directory
warning: (x86_64)
/Users/shekhargupta/Library/Developer/Xcode/DerivedData/CrashReporter-akgtfajxycj
livhjpjdnrnhkjymr/Build/Intermediates.noindex/CrashReporter.build/Debug-iphonesim
ulator/CrashReporter iOS.build/Objects-normal/x86_64/PLCrashLogWriterEncoding.o
unable to open object file: No such file or directory
warning: (x86_64)
/Users/shekhargupta/Library/Developer/Xcode/DerivedData/CrashReporter-akgtfajxycj
livhjpjdnrnhkjymr/Build/Intermediates.noindex/CrashReporter.build/Debug-iphonesim
ulator/CrashReporter iOS.build/Objects-normal/x86_64/PLCrashReporter.o unable to
open object file: No such file or directory
warning: (x86_64)
/Users/shekhargupta/Library/Developer/Xcode/DerivedData/CrashReporter-akgtfajxycj
livhjpjdnrnhkjymr/Build/Intermediates.noindex/CrashReporter.build/Debug-iphonesim
ulator/CrashReporter
iOS.build/Objects-normal/x86_64/PLCrashReport-11249c1192c18cc76f5d36d106873855.o
unable to open object file: No such file or directory
warning: (x86_64)
/Users/shekhargupta/Library/Developer/Xcode/DerivedData/CrashReporter-akgtfajxycj
livhjpjdnrnhkjymr/Build/Intermediates.noindex/CrashReporter.build/Debug-iphonesim
ulator/CrashReporter iOS.build/Objects-normal/x86_64/PLCrashReportSystemInfo.o
unable to open object file: No such file or directory
warning: (x86_64)
/Users/shekhargupta/Library/Developer/Xcode/DerivedData/CrashReporter-akgtfajxycj
livhjpjdnrnhkjymr/Build/Intermediates.noindex/CrashReporter.build/Debug-iphonesim
ulator/CrashReporter
iOS.build/Objects-normal/x86_64/PLCrashReportApplicationInfo.o unable to open
object file: No such file or directory
warning: (x86_64)
Result bundle written to path:
/var/folders/0z/nxwbg1xj73q7yjq_8_y4bq300000gp/T/flutter_tools.OE7sso/flutter_io
s_build_temp_dir95kwpx/temporary_xcresult_bundle
Could not build the application for the simulator.
Error launching application on iPhone 14.
Things that I have tried
1.flutter clean
2.Installing latestpods
3.check mark done on build phase->based on dependency analysis
tried workaround but non of them helps, tried with multiple Xcode version also(14.1,14.0)
Error log : https://drive.google.com/file/d/1io2e4lvr89i6tnnHmv6gjjQov7fXTSsJ/view?usp=share_link
答案1
得分: 1
因为文件夹名称中含有空格,找到了根本原因,所以无法构建。我已经在普通文件夹中进行了测试,一切正常。
测试测试 不起作用。
测试 起作用。
真是一个奇怪的问题。
英文:
Found the root cause due to space in folder name its not building.i have test in normal folder its working fine
test test not works
test works
Really a strange issue
答案2
得分: 0
尝试这个:
flutter clean
cd ios
==>pod deintegrate
pod cache clean --all
cd ..
==>flutter pub get
cd ios
==>pod install
- 然后构建或存档
也许会有帮助。
英文:
try this
flutter clean
cd ios
==>pod deintegrate
pod cache clean --all
cd ..
==>flutter pub get
cd ios
==>pod install
- then build or archive
maybe it helps
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论