pod update 和 pod install
update 和 install 区别:
-
update:
-
install:
update 失败解决:
终端输入:
pod update
错误提示,如下图:

解决方法
终端输入:
//pod repo update命名是用来更新本地cocoapods的spec资源配置信息
//安装完cocoapods后,在用户根目录下有个隐藏文件夹,/Users/harleyhuang[用户名]/.cocoapods,里面是cocoapods收录的所有库的配置信息;
// /Users/harleyhuang[用户名]/.cocoapods/repos/master/Specs/;
// 比如Kingfisher就是/Users/harleyhuang[用户名]/.cocoapods/repos/master/Specs/a/a/6/Kingfisher,内部分版本包含多个文件夹,每个文件夹内包含一个配置文件,比如Kingfisher.podspec.json
pod repo update --verbose
如:Kingfisher.podspec.json 所在文件夹路径图:



然后再次在终端输入:pod update
即可。
网友评论