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)