美文网首页
CocoaPods could not find compati

CocoaPods could not find compati

作者: kevinXiao | 来源:发表于2021-11-01 20:47 被阅读0次

在终端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,同开源库要求的最低系统版本一致,就可以了。

相关文章

网友评论

      本文标题:CocoaPods could not find compati

      本文链接:https://www.haomeiwen.com/subject/hjdtzltx.html