以 Pingpp~2.2.20 为例,说说我遇到的问题及解决办法
1、首先检查了一下Cocoapods是不是最新的,$ pod --version
2、发现是最新的,所以要更新一下本地仓库 $ pod repo update,结果失败
$ pod repo update
错误处理:
1.首先找到cocoapods路径, $ cd /Users/bcwf/.cocoapods/repos/master
, bcwf
是mac的用户名, 替换成自己的就行了
2. 然后$ git pull
, 把cocoapods的代码拉下来,需要等待
3.最后$ pod repo update master
, 这一步执行成功以后(执行失败了), $ pod search Pingpp
应该就成功了(也成功了).
一切都成功了,但是当我按照文档进行导入时
结果
最终酱紫:
pod 'Pingpp/Alipay',:git => 'https://github.com/PingPlusPlus/pingpp-ios.git'
pod 'Pingpp/Wx',:git => 'https://github.com/PingPlusPlus/pingpp-ios.git'
pod 'Pingpp/UI',:git => 'https://github.com/PingPlusPlus/pingpp-ios.git'
成功了
感谢臣哥啊