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