Cocoapods Installation and use

Source: Internet
Author: User
Tags install cocoapods

Cocoapods Installation and use

Cocoapods test Installation Environment (Xcode 7.2.1 OSX 10.11.3)

iOS app third-party framework management artifact Cocoapods. With the update of Xcode and OSX systems, the installation and use of cocoapods is slightly different, summarized as follows:

Replacement Source:

Gem Sources--remove https://rubygems.org/

Gem Sources-a https://ruby.taobao.org/

Gem Sources–l

Note: Gem is a tool for Management Packs in ruby environments, first to make sure that your computer already has Ruby installed. The latest OSX system already has Ruby installed by default.

Update upgrade Gem (problems later, try)

  sudo gem Update–system (not recommended)

Note: This command is no longer working, this is a previously used Gem Update command.

If you use this command now, the error will be reported:

Error:while Executing gem ... (errno::eperm)

Operation not Permitted-usr/bin/pod

  sudo gem update-n/usr/local/bin--system (recommended)

Installation Instructions:

  sudo gem install cocoapods (not recommended)

  sudo gem install-n/usr/local/bin cocoapods (recommended)

Initialize third-party library information (problems later, try):

  Pod Setup

Update third-party library information

  Pod Repo update

Change repo mirror to domestic server (download third party libraries Slow words recommended)

  Pod Repo Remove Master

  Pod Repo Add Master Https://gitcafe.com/lloydsheng/Specs.git

  Pod Repo update

Note: Https://git.oschina.net/akuandev/Specs.git will always report 403 errors during actual testing

Https://github.com/CocoaPods/Specs.git

Https://gitcafe.com/lloydsheng/Specs.git (May 31, 2016 will expire)

Search:

  Pod Search

New Podfile

  Vim Podfile

Parsing Podfile, installing a third-party framework

  Pod Install

Parsing podfile, upgrading third-party frameworks

  Pod Update

Uninstalling Cocoapods

  sudo gem uninstall cocoapods

Cocoapods Installation and use

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.