在Xcode中使用cocoapods-xcode-plugin插件更新第三方框架時(shí)框架并沒有更新, 并且出現(xiàn)下面警告:
[!] Unable to satisfy the following requirements:
- MJRefresh
, ~> 2.4.7
required by Podfile
參照網(wǎng)友提供的方法, 使用以下命令更新CocoaPods版本庫同樣沒有效果
pod update --verbose
后來發(fā)現(xiàn)這是個(gè)已知的BUG, CocoaPods的版本庫是有緩存的, 但在使用pod指令更新版本庫時(shí)會(huì)出現(xiàn)沖突, 導(dǎo)致更新并不能如期完成, 需要手動(dòng)刪除本地緩存, 再進(jìn)行更新.
具體方法:
$ sudo rm -fr ~/.cocoapods/repos/master
$ pod setup