简体   繁体   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>

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.

相关问题 Flutterfire 配置错误尝试运行命令 - Flutterfire configure error attempting to run a command “flutterfire configure”命令不起作用,我需要在我的 flutter 项目中设置 firebase - 'flutterfire configure' command not working, I need to set firebase in my flutter project Flutterfire 配置意外字符(字符 1)错误 - Flutterfire configure Unexpected character (at character 1) error 我正在尝试向我的应用程序添加身份验证,但这样做时出现以下映射错误: - I am trying to add authentication to my application, and I am getting the following mapping error when doing so: Flutterfire 不会配置 - Flutterfire won't configure 当我按照文档尝试将我的 Android Studio 连接到 Firebase 时出现错误 - Getting error when I am trying to connect my Android Studio to Firebase following the docs 使用 flutterfire 配置时出现意外的输入错误结束 - Unexpected end of input error when configuring with flutterfire 为什么在运行以下 SQL 代码时出现错误 - Why am I getting an error while running the following SQL code 尝试在我的 Android 应用程序项目中添加电话身份验证时出现错误 - I am getting error when trying to add phone authentication in my Android app project zsh:找不到命令:flutterfire - zsh: command not found: flutterfire
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM