Cocoapods失败了flutter画廊

发布于 2025-01-24 23:37:06 字数 718 浏览 2 评论 0原文

我正在尝试开始 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

打小就很酷 2025-01-31 23:37:06

不确定POD安装是否解决了您的问题,但是安装FFI还不够。您还必须使用Arch运行POD命令。

例如。

arch -x86_64 pod install --repo-update

Not sure if pod install solves your problem, but installing ffi is not enough. You must also run the pod commands using arch.

For example.

arch -x86_64 pod install --repo-update
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文