pod setup will not end forever

Cause

gem update

gem install cocoapods

It is considered that the above two are clearly not going well

 

Only solve the solution

 

Please execute the following commands in order

 

sudo gem update –system -n /usr/local/bin

sudo gem install cocoapods -n /usr/local/bin/

pod setup

 

Brief explanation

 

cocoapods is running with ruby so we need gem to manage ruby

If you normally update gem it will result in a permission error with rootless function

sudo gem update –system -n /usr/local/bin

By specifying this location by executing it in / usr / local / bin like this

 

After updating gem, put cocoapds in the latest gem

Because we can not do it routinely with the route-less function

Specify the place to install as follows

Try not to be affected by route-less

sudo gem install cocoapods -n /usr/local/bin/

Preparation is complete. You can run pod setup

藤沢瞭介(Ryosuke Hujisawa)
  • りょすけと申します。18歳からプログラミングをはじめ、今はフロントエンドでReactを書いたり、AIの勉強を頑張っています。off.tokyoでは、ハイテクやガジェット、それからプログラミングに関する情報まで、エンジニアに役立つ情報を日々発信しています!

未整理記事