Troubleshooting Mac OS X 10.11 Cococapods cannot find a problem after updating

Source: Internet
Author: User
Tags install cocoapods

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

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.