1、https://guides.cocoapods.org/making/private-cocoapods.html
2、在podfile文件最上方添加下面两行,如果你不指定的话,pod install只会在master下搜索
source'https://github.com/yohunl/yohunlSpecs.git'#我们自己的私有spec仓库的地址
source'https://github.com/CocoaPods/Specs.git'#官方仓库的地址
例子:https://github.com/libaibo/HRLib
问题1:pod repo add 'PodSpecRepo' 'https://xxxxxxxxx/iOS_pods/PodSpecRepo.git'
[!] /usr/bin/git clonehttps://xxxxxxx/iOS_pods/PodSpecRepo.gitPodSpecRepo
Cloning into 'PodSpecRepo'...
fatal: unable to access 'https://10.159.46.130/iOS_pods/PodSpecRepo.git/': SSL certificate problem: unable to get local issuer certificate
解决办法:在~/.gitconfig 中添加以下内容
[http]
sslVerify = false
postbuffer = 524288000
[credential]
helper = osxkeychain