Cocoapods失败了flutter画廊
我正在尝试开始 flutter画廊带有flutter run -d macos
。它失败:
...
Error: To set up CocoaPods for ARM macOS, run:
arch -x86_64 sudo gem install ffi
Exception: Error running pod install
运行ARCH -X86_64 SUDO GEM install ffi
无济于事。运行flutter Clean
也无济于事。
可能缺少什么?
我的笔记本电脑中有Apple M1 Pro芯片。可以是原因吗?
- 我的颤音版本:2.13.0-0.0.pre.776
- 完整的控制台输出为在这里。
I am trying to start Flutter Gallery with flutter run -d macos
. It fails:
...
Error: To set up CocoaPods for ARM macOS, run:
arch -x86_64 sudo gem install ffi
Exception: Error running pod install
Running arch -x86_64 sudo gem install ffi
does not help. Running flutter clean
does not help too.
What can be missing?
I have Apple M1 Pro chip in my laptop. Can it be the reason?
- My flutter version: 2.13.0-0.0.pre.776
- The full console output is here.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不确定
POD安装
是否解决了您的问题,但是安装FFI还不够。您还必须使用Arch
运行POD
命令。例如。
Not sure if
pod install
solves your problem, but installing ffi is not enough. You must also run thepod
commands usingarch
.For example.