Exploitation -CocoaPods mounting assembly iOS

You should first check whether the Mac rvm (ruby version manager) installed. Open the terminal input command $ rvm -v, if not installed

curl -L https://get.rvm.io | bash -s stable

Check the current version installed with rvm environment ruby, ruby ​​-v rvm list query ruby ​​known environmental input command known: rvm install 2.6.3 

Check for updates ruby ​​versions environment cocoapods with gem ruby ​​implemented want to use it you first need to have a gem ruby ​​environment

Check the source and remove ruby 

gem source -a https://gems.ruby-china.com

Installation CocoaPods (sudo represents the administrator to execute instructions, you need to enter a password)

sudo gem install -n /usr/local/bin cocoapods 

 Remote cloning local index repository

git clone https://git.coding.net/CocoaPods/Specs.git ~/.cocoapods/repos/master

 

Guess you like

Origin www.cnblogs.com/CoderHong/p/11241648.html