Error when upgrading 10.11 's system to execute pod install later
: Command Not Found:pod
Here's how to fix it:
1. Check the gem's data source Gem sources-l
http://ruby.taobao.org
May be like iOS9, Capitan 10.11 prohibit HTTP request, changed to HTTPS protocol header is good
Gem Sources--remove http://ruby.taobao.org/
Gem Sources-a https://ruby.taobao.org/
2. Reinstall pod
sudo gem install Cocoapods
If the error is repeated
Error:while Executing gem ... (errno::eperm)
Operation not permitted-/usr/bin/xcodeproj
3. Use instructions, installation success
sudo gem install-n/usr/local/bin cocoapods
If the above operation after the error is still: the following:
Error:while Executing gem ... (errno::eperm) Operation not permitted-/usr/bin/pod
Then you need to follow the procedure below:
1.
Mkdir-p $HOME/software/ruby
Export Gem_home= $HOME/software/ruby
Gem Install Cocoapods
Export path= $PATH: $HOME/software/ruby/bin
Then execute:
sudo gem update--system
2. After the install command executes successfully, execute:
Pod Setup
Successful execution display:
Setting up CocoaPods master Repo
.........
Setup completed
Note: The execution of the first sentence will wait for a long time, this step is actually cocapods download information to the ~/.cocoapods directory. To view the download Progress command:
CD ~/.cocoapods
du-sh*
Then you can try the following:
Pod Search afnetworking
If the above is still wood to solve your pods problem, please private messages me ~ (*^__^*)
Reprint please specify the reprint address ~
Troubleshooting Mac OS X 10.11 Cococapods cannot find a problem after updating