Cocoapods in OS X Yosemite error-Escalation workaround

Source: Internet
Author: User
Tags install cocoapods

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.