Problem resolution Cocoapods not working correctly after MAC OS upgrade to 10.11 (OS X eicaption)

Source: Internet
Author: User
Tags install cocoapods



Went home last night after the upgrade system to 10.11, downloaded a whole night after finally downloaded in the morning, brought to the company in the morning, want to check a third-party library, but encountered a problem:


guoyufudeMacBook-Pro:~ GuoYufu$ pod search VKVideoPlayer
-bash: pod: command not found


Then try:


guoyufudeMacBook-Pro:~ GuoYufu$ gem sources -l
*** CURRENT SOURCES ***

http://ruby.taobao.org/


This is true.



Continue to try:


guoyufudeMacBook-Pro:~ GuoYufu$ pods help
-bash: pods: command not found


It is then basically determined that the system upgrade causes cocoapods not to function properly. Continue to find the solution:



1. First consider reinstalling the Cocoapods:


guoyufudeMacBook-Pro:~ GuoYufu$ sudo gem install cocoapods
Password:
ERROR:  While executing gem ... (Errno::EPERM)
    Operation not permitted - /usr/bin/pod


Failed.



2. Continue to find the solution according to the error information, run the found:


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


Tips:


Successfully installed cocoapods-0.38.2
Parsing documentation for cocoapods-0.38.2
1 gem installed


Did it succeed?



Try:


Pod Search Vkvideoplayer


can be performed normally.



Try to update the version of Cocoapods:


guoyufudeMacBook-Pro:~ GuoYufu$ sudo gem install cocoapods
Password:
ERROR:  While executing gem ... (Errno::EPERM)
    Operation not permitted - /usr/bin/pod


or an error.



3. Simply follow the initial steps to install it all over again:


Brew Install Ruby
sudo gem install Cocoapods


Finally no more error.









Problem resolution Cocoapods not working correctly after MAC OS upgrade to 10.11 (OS X eicaption)


Related Article

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.