Pod更换国内源

/ 0评 / 1

开发的时候使用cocoaPods来作为三方库管理工具很方便,但是它默认使用的是github镜像,那速度你懂得,我这里推荐一个国内的镜像
https://git.coding.net/hging/Specs.git

首先我们 我们只需要在使用的时候将 source 'https://github.com/CocoaPods/Specs.git'

更换成 source 'https://git.coding.net/hging/Specs.git' 就可以了

然后 使用 pod install --verbose --no-repo-update

就可以了

如果不想加参数 那么改一下系统的配置就行

pod repo remove master

pod repo add master https://git.coding.net/hging/Specs.git

pod repo list

这样就可以直接使用pod install 了

评论已关闭。