title: cocoapods permission issue in High Sierra?
body: <p>I updated my macOS to High Sierra, Now installing dependencies through cocoapods in my iOS application. But I face the following error.</p>
  
  <pre><code>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
  </code></pre>
  
  <p>Than i tried </p>
  
  <pre><code> 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$
  </code></pre>
  
  <p>any help would be greatly appreciated. </p>