Resolving the issue of juice in the High Sierra?

I upgraded my macOS to High Sierra, now I install dependencies via cocoapods in my iOS application. But I am facing the following error.

XXXXXXXXX:MyProject CompanyName$ pod update -bash: /usr/local/bin/pod: /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby: bad interpreter: No such file or directory 

Than i tried

  Zubair-mac-mini:~ sdsol$ gem install cocoapods ERROR: While executing gem ... (Gem::FilePermissionError) You don't have write permissions for the /Library/Ruby/Gems/2.3.0 directory. Zubair-mac-mini:~ sdsol$ 

Any help would be greatly appreciated.

+7
ruby cocoapods rubygems macos-high-sierra
source share
4 answers

Finally, I found a solution after a great search.

1: update the terminal to the latest version.

2: Download and update RubyGems to the latest version: https://rubygems.org/pages/download

3: Slim I am updating my page file. via the pod update.

+1
source share

I had the same problem after upgrading to macOS High Sierra and was fixed with the following commands (note: you need to use sudo to run as root):

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

Good luck

+20
source share

After upgrading to macOS High Sierra, secure it with the following commands:

 sudo gem install cocoapods 
+3
source share

Add

eval "$(rbenv init -)" to ~/.bash_profile file

0
source share

All Articles