Today, after upgrading Mac OS X 10.10-yosemite, running pod install encounters the following error:
/system/library/frameworks/ruby.framework/versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:245:in ' mkdir ': Permission denied-/library/ruby/gems/2.0.0/extensions/universal-darwin-14 (errno::eacces)
After a toss-up find the solution as follows:
1. Perform the following command to uninstall Cocoapods and xcodeproj, if you have multiple versions on your machine, select all versions Uninstall
$ sudo gem uninstall cocoapods$ sudo gem uninstall xcodeproj
2. Install Xcodeproj and Cocoapods, respectively, by executing the following command
$ sudo gem install xcodeproj$ sudo gem install cocoapods
Next try to perform the pod install if you also encounter the following error:
Error loading the plugin with path '/library/ruby/gems/2.0.0/gems/cocoapods-plugins-0.3.1/lib/cocoapods_plugin.rb '. Errno::eacces-permission denied-/library/ruby/gems/2.0.0/extensions/universal-darwin-14
Run the command $ gem update--system.
Cocoapods in OS X Yosemite error-Escalation workaround