Original address: http://www.cocoachina.com/ios/20141018/9958.html
Today, after upgrading Mac OS X 10.10-yosemite, running pod install encounters the following error:
123 |
/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
123 |
$ sudo gem uninstall cocoapods $ sudo gem uninstall xcodeproj |
2. Install Xcodeproj and Cocoapods, respectively, by executing the following command
123 |
$ sudo gem install xcodeproj $ sudo gem install cocoapods |
Next try to perform the pod install if you also encounter the following error:
12 |
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 on OS X Yosemite to upgrade the Times wrong solution