[英]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>
I tried:我试过了:
flutterfire configure --project=test-app-egr423
Firebase configuration file lib/firebase_options.dart generated successfully with the following Firebase apps: Firebase 配置文件 lib/firebase_options.dart 使用以下 Firebase 应用成功生成:
I was getting the same error when using flutterfire
version 0.2.7
on my Macbook Air M1 when running flutterfire configure
.在我的 Macbook Air M1 上运行flutterfire configure
时使用flutterfire
版本0.2.7
时,我遇到了同样的错误。 In my case I solved this issue by opening the terminal and running the following command:就我而言,我通过打开终端并运行以下命令解决了这个问题:
gem install xcodeproj
Or if running the command gives any permission errors:或者如果运行命令给出任何权限错误:
sudo gem install xcodeproj
I hope this solves the problem for you as well.我希望这也能为您解决问题。 I found my solution from this Github issue.我从这个Github 问题中找到了我的解决方案。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.