Cocoapods on OS X Yosemite to upgrade the Times wrong solution

Source: Internet
Author: User

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 withpath ‘/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

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: info-contact@alibabacloud.com 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.