[英]Flutter ios build fails Pods-Runner-frameworks.sh
I'm trying to build a flutter app for ios.我正在尝试为 ios 构建一个 flutter 应用程序。 The simulator runs fine, but I cannot build to test on a phone.
模拟器运行良好,但我无法在手机上进行测试。
The problem occurs when I try to install url_launcher, without it everything works fine.当我尝试安装 url_launcher 时出现问题,没有它一切正常。 I already tried reinstalling the pods, creating a project from scratch, but nothing seems to work.
我已经尝试重新安装 pod,从头开始创建一个项目,但似乎没有任何效果。 I also tried switching back to the legacy build system of Xcode, but still nothing
我还尝试切换回 Xcode 的旧版构建系统,但仍然没有
this is the error code这是错误代码
Stripped /Users/matteo/Library/Developer/Xcode/DerivedData/Runner-fagvhlbapfiuygdkuldipojcrkxy/Build/Products/Debug-iphoneos/Eat o'clock.app/Frameworks/Flutter.framework/Flutter of architectures: x86_64 armv7
Code Signing /Users/matteo/Library/Developer/Xcode/DerivedData/Runner-fagvhlbapfiuygdkuldipojcrkxy/Build/Products/Debug-iphoneos/Eat o'clock.app/Frameworks/Flutter.framework with Identity Apple Development: mgassend@gmail.com (WYPNXJUKW6)
/usr/bin/codesign --force --sign A2192773669C062BD98ECAE7CEB4F7FF42D3B25C --preserve-metadata=identifier,entitlements '/Users/matteo/Library/Developer/Xcode/DerivedData/Runner-fagvhlbapfiuygdkuldipojcrkxy/Build/Products/Debug-iphoneos/Eat o'clock.app/Frameworks/Flutter.framework'
/Users/matteo/foodfighter/mobile3/ios/Pods/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh: eval: line 131: unexpected EOF while looking for matching `''
Have any of you ever experienced something like this?你们有没有人经历过这样的事情?
The problem, I found out, was due to the app's name (Eat o'clock).我发现问题出在应用程序的名称(Eat o'clock)上。 Since the command is a string that uses ' ' as separators for a variable at the end of the script, this was causing an error.
由于该命令是一个字符串,它在脚本末尾使用 ' ' 作为变量的分隔符,这会导致错误。 Hope this can help someone in my same situation
希望这可以帮助我遇到同样情况的人
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.