0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

[Flutter x Firebase] FlutterFire CLIインストール時に発生したエラー解決方法( cannot load such file -- xcodeproj (LoadError) )

Last updated at Posted at 2024-10-10

実行コマンド

flutterfire configure

上記コマンド実行時に以下のエラーが発生しました

エラー全文

❯ flutterfire configure --project=project-name
i Found 1 Firebase projects. Selecting project project-name.                                                                                                                                                                                                                             
✔ Which platforms should your configuration support (use arrow keys & space to select)? · android, ios                                                                                                                                                                                       
✔ Which Android application id (or package name) do you want to use for this configuration, e.g. 'com.example.app'? · com.example.project-name                                                                                                                                                              
i Firebase android app com.hoge is not registered on Firebase project project-name.                                                                                                                                                                                                     
i Registered a new Firebase android app on Firebase project project-name.                                                                                                                                                                                                                
i Firebase ios app com.example.hoge is not registered on Firebase project project-name.                                                                                                                                                                                                 
i Registered a new Firebase ios app on Firebase project project-name.                                                                                                                                                                                                                    
Exception: <internal:/Users/hoge/.rbenv/versions/3.0.3/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require': cannot load such file -- xcodeproj (LoadError)
        from <internal:/Users/hoge/.rbenv/versions/3.0.3/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
        from -e:1:in `<main>'

解決すべきエラーメッセージは以下の箇所

Exception: <internal:/Users/hoge/.rbenv/versions/3.0.3/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require': cannot load such file -- xcodeproj (LoadError)
        from <internal:/Users/hoge/.rbenv/versions/3.0.3/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
        from -e:1:in `<main>'

解決方法

xcodeproj は Xcode プロジェクトの依存関係を管理する CocoaPods で利用されているが、エラーメッセージの通り xcodeproj が存在してないことが直接的な原因なのでインストールする

$ gem install xcodeproj --user-install
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?