🔥

cocoapodsインストールで引っかかった点

2024/01/11に公開

flutterでの開発予定ディレクトリ上で以下コマンド実行

sudo gem install cocoapods

以下のエラーが表示

ERROR:  Error installing cocoapods:
	The last version of drb (>= 0) to support your Ruby & RubyGems was 2.0.6. Try installing it with `gem install drb -v 2.0.6` and then running the current command again
drb requires Ruby version >= 2.7.0. The current ruby version is 2.6.10.210.

言われた通り以下実行

gem install drb -v 2.0.6

以下エラー表示

ERROR:  While executing gem ... (Gem::FilePermissionError)
    You don't have write permissions for the /Library/Ruby/Gems/2.6.0 directory.

sudoで強制的に書き込んでいいのやら...?

Discussion