dart 我在Mac上运行flutterfire configure命令时收到错误

ebdffaop  于 2023-01-15  发布在  Mac
关注(0)|答案(1)|浏览(405)
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应用程序成功生成Firebase配置文件lib/firebase_options.dart:

whlutmcx

whlutmcx1#

我得到同样的错误时,使用flutterfire版本0.2.7在我的MacBook Air M1运行flutterfire configure .在我的情况下,我解决了这个问题,打开终端,并运行以下命令:

gem install xcodeproj

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

sudo gem install xcodeproj

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

相关问题