Flutter iOS构建失败Pods-Runner-frameworks.sh

时间:2019-10-24 03:13:30

标签: ios flutter cocoapods

我正在尝试为ios开发一个Flutter应用程序。模拟器运行正常,但是我无法在手机上进行测试。

当我尝试安装url_launcher时,会出现问题,否则一切正常。我已经尝试过重新安装Pod,从头开始创建一个项目,但是似乎没有任何效果。我还尝试过切换回Xcode的旧版构建系统,但仍然没有实现

这是错误代码

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 `''

你们有没有经历过这样的事情?

1 个答案:

答案 0 :(得分:0)

我发现问题出在应用程序的名称(凌晨)。由于该命令是一个在脚本末尾使用''作为变量分隔符的字符串,因此会导致错误。希望这可以帮助我遇到同样情况的人