- CocoaPods could not find compati
- CocoaPods could not find compati
- CocoaPods could not find compati
- CocoaPods could not find compati
- CocoaPods could not find compati
- CocoaPods could not find compati
- CocoaPods could not find compati
- CocoaPods could not find compati
- CocoaPods could not find compati
- CocoaPods could not find compati
在终端pod search 'ZLPhotoBrowser'也可以搜索到

但每次使用pod install进行安装的时候,会报这个错
[!] CocoaPods could not find compatible versions for pod "ZLPhotoBrowser":
In Podfile:
ZLPhotoBrowser (= 4.1.9)
使用pod repo update更新仓库,还是不行,最后找到原因了,如下:
作者的开源库的ZLPhotoBrowser.podspec文件中关于deployment target的配置写的是10.0,s.ios.deployment_target = '10.0',
而我的项目的podfile中的platform是默认的9.0,platform :ios, '9.0'
当podfile中支持的iOS版本低于开源库指定的版本时,就安装不成功了。
解决办法有两个:
直接把自己项目的podfile中的版本改成10.0,同开源库要求的最低系统版本一致,就可以了。

网友评论