Latest Mac Install CocoaPods Quick Install

Recently, the company's 12-year-old computer was suddenly broken. Once it was broken, it was gone forever. I lost a lot of important files, and I cried too much~~~

The company bought a new version of MacBookPro, and many development tools need to be re-installed. The installation of cocoapods is very slow. It has to be installed according to the method of mirror installation. It takes half a day to figure out who I have served. Finally found this blog on the Internet , thank you very much for sharing. Done in less than 5 minutes. OS10.13.4 was successfully installed by myself. The following is the coercion process. . . . .

1. If you have used Taobao image to install before (install with this command: sudo gem install cocoapods ), then the directory ~ /.cocoapods/ repos should exist (as long as you have executed the command ( sudo gem install cocoapods ))

Open the terminal and execute the command:

cd ~/.cocoapods/rest

If it prompts that the path is not found (prompts not found or something), you need to create a path and directly execute the following command to create an installation path file (if it does not prompt that the path file cannot be found, ignore the create path command):

sudo gem install cocoapods

2. After entering the correct installation path, now start to clone (download) the contents of the installation package directly and execute the following command:

git clone https://git.coding.net/CocoaPods/Specs.git

Comrades who use Git to manage project versions should know the meaning of this sentence~~~~

3. After the installation is complete, execute open . Open the current directory repos, and execute the command:

open .

Then rename the Specs directory to master. The directory hierarchy of ~/.cocoapods/repos is as follows (here I directly quote the original author's screenshot):

If gitclone is still slow, go directly to https://github.com/CocoaPods/Specs and click to download. According to the above directory structure diagram, just put it right.

Here the cocoaPods quick installation has been completed. There is a lot of specific use of online information. The original blog is very detailed, and I will post it again: https://www.cnblogs.com/gchlcc/p/6068801.html


Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324605263&siteId=291194637