実行可能バンドルを含む gem バンドラー (>= 0.a) が見つかりません (Gem::GemNotFoundException)
概要
React ネイティブ プロジェクトをセットアップしようとしましたが、すべて問題ないようですが、cd ios && pod install をインストールすると、次のエラーが表示されます。
/Library/Ruby/Site/2.6.0/rubygems.rb:264:in `find_spec_for_exe': can't find gem bundler (>= 0.a) with executable bundle (Gem::GemNotFoundException)
from /Library/Ruby/Site/2.6.0/rubygems.rb:283:in `activate_bin_path'
from /usr/bin/bundle:23:in `<main>'
過去 2 ~ 3 日で多くの解決策を試しましたが、残念ながら何も機能しませんでした。
Terminal Command: ruby -v
Response: ruby 2.6.10p210 (2022-04-12 revision 67958) [universal.arm64e-darwin22]`
Terminal Command: gem update --system
Response: Latest version already installed.
Terminal Command: echo $PATH
Response: /opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/Users/dinar/.rvm/bin
助けてください
解決策
Bundler は Ruby の一部ではないため、個別にインストールする必要があります。
gem install Bundler を実行して Bundler をインストールし、bundle -v でインストールを確認します。これにより、インストールされている Bundler のバージョンの番号が返されます。