当前位置: 代码迷 >> 综合 >> CocoaPods Note: as of CocoaPods 1.0, `pod repo update` does not happen on `pod install
  详细解决方案

CocoaPods Note: as of CocoaPods 1.0, `pod repo update` does not happen on `pod install

热度:0   发布时间:2023-12-22 17:50:12.0

对第三方库指定版本后 pod install 报错 如下

Note: as of CocoaPods 1.0, `pod repo update` does not happen on `pod install

 CocoaPods的版本库是有缓存的, 但在使用pod指令更新版本库时会出现冲突, 导致更新并不能如期完成, 需要手动删除本地缓存, 再进行更新。

解决方法:

$ sudo rm -fr ~/.cocoapods/repos/master
$ pod setup

之后重新 pod install 顺利通过

 

  相关解决方案