簡體   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