【发布时间】:2022-08-15 19:59:29
【问题描述】:
从官方“将 Firebase 添加到您的应用程序”教程的第 3.5 步尝试使用标准颤振启动器应用程序(以限制其他潜在问题)(请参阅https://firebase.google.com/docs/flutter/setup?authuser=0&hl=en&platform=ios)中的“颤振运行”时,我得到以下信息调试控制台中的输出:
{来自/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/user_interface.rb:64:in section\' from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/installer.rb:240:in resolve_dependencies\'
来自 /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/installer.rb:161:in install!\' from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/command/install.rb:52:in run\'
来自 /Library/Ruby/Gems/2.6.0/gems/claide-1.1.0/lib/claide/command.rb:334:in run\' from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/command.rb:52:in run\'
来自 /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/bin/pod:55:in <top (required)>\' from /usr/local/bin/pod:23:in load\'
从 /usr/local/bin/pod:23:in `\'
错误:要为 ARM macOS 设置 CocoaPods,请运行:
拱 -x86_64 须藤宝石安装 ffi
运行 pod install 时出错 在 iPhone 12 上启动应用程序时出错。 退出}
然后当我运行建议时:
{arch -x86_64 sudo gem install ffi}
它似乎运行成功,打印:
{构建原生扩展。这可能需要一段时间... 成功安装ffi-1.15.5 ffi-1.15.5 的解析文档 3 秒后完成安装 ffi 的文档 已安装 1 个宝石}
但是,如果我然后重新运行“flutter run”,我会得到与以前完全相同的错误。
我尝试过flutter clean,卸载并重新安装ffi和cocoapods的-x86_64版本,但仍然出现相同的错误......
有任何想法吗?
标签: flutter firebase cocoapods