繁体   English   中英

在我的 mac 上运行 flutterfire configure 命令时出现错误

[英]I am getting an error when running the flutterfire configure command on my mac

Unhandled exception:
Exception: /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- xcodeproj (LoadError)
        from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
        from -e:1:in `<main>'

#0      ConfigCommand.run (package:flutterfire_cli/src/commands/config.dart:517:11)
<asynchronous suspension>
#1      CommandRunner.runCommand (package:args/command_runner.dart:209:13)
<asynchronous suspension>
#2      main (file:///Users/dylanguzman/.pub-cache/hosted/pub.dartlang.org/flutterfire_cli-0.2.6+1/bin/flutterfire.dart:57:5)
<asynchronous suspension>

我试过了:

flutterfire configure --project=test-app-egr423

Firebase 配置文件 lib/firebase_options.dart 使用以下 Firebase 应用成功生成:

在我的 Macbook Air M1 上运行flutterfire configure时使用flutterfire版本0.2.7时,我遇到了同样的错误。 就我而言,我通过打开终端并运行以下命令解决了这个问题:

gem install xcodeproj

或者如果运行命令给出任何权限错误:

sudo gem install xcodeproj

我希望这也能为您解决问题。 我从这个Github 问题中找到了我的解决方案。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM