The spec repository is always updated when pod install/update is used, but the repository is outside the wall and we don’t have to update it every time

So instead of updating CocoaPods spec repository, we can speed things up:

pod install --verbose --no-repo-update

pod update --verbose --no-repo-update
Copy the code

You can also replace the spec repository with a domestic mirror address (the address may not always be available, try before using it)

pod repo remove master

pod repo add master http://git.oschina.net/akuandev/Specs.git

pod repo update
Copy the code