[!] CocoaPods could not find compatible versions for pod "xxx":
In Podfile:
xxx (from `https://github.com/xxx/xxx.git`)
Specs satisfying the `xxx (from `https://github.com/xxx/xxx.git`)` dependency were found, but they required a higher minimum deployment target
我的開(kāi)源庫(kù)的xxx.podspec文件中關(guān)于deployment target的配置寫(xiě)的是10.0, s.ios.deployment_target = '10.0',
而我的項(xiàng)目的podfile中的platform是默認(rèn)的9.0,platform :ios, '9.0'
當(dāng)podfile中支持的iOS版本低于開(kāi)源庫(kù)指定的版本時(shí),就安裝不成功了。
解決辦法有兩個(gè):
如果這個(gè)庫(kù)是你自己寫(xiě)的,可以改下podspec文件,把系統(tǒng)版本寫(xiě)小一點(diǎn)兒,比如8.0。
直接把自己項(xiàng)目的podfile中的版本改成10.0,同開(kāi)源庫(kù)要求的最低系統(tǒng)版本一致,就可以了。
我把podfile中的版本改成10.0,安裝成功了