Fix cocoapods problems in OS X 10.11

Source: Internet
Author: User

recently upgraded the MAC system to the 10.11 system, but when using the pod Install command, it prompted command not found. Later on the Internet to check the next to know, Cocoapods on the 10.11 system has changed.

The explanation found in StackOverflow is that the happening because Apple has the enable rootless on the new install, which means that on 10.11 systems Apple has enabled root-free installation. In this case, if you use the following command:

sudo gem install cocoa pods-v

The prompt will appear:

Error:while Executing gem ... (errno::eperm) Operation not permitted-/usr/bin/pod.

In order to solve the problem mentioned above and the normal use of cocoapods on OS X 10.11 system, we need to enter such a sentence at the command line,

sudo gem install-n/usr/local/bin cocoapods

This will solve the problem of cocoapods on the 10.11 system.


Fix cocoapods problems in OS X 10.11

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.