[!] CocoaPods could not find com

2020-11-24  本文已影响0人  杨顺光

[!] CocoaPods could not find compatible versions for pod "xxx": In snapshot (Podfile.lock):

pod install报错:

[!] CocoaPods could not find compatible versions for pod "xxx":

In snapshot (Podfile.lock):

Analyzingdependencies

[!]CocoaPodscouldnotfindcompatibleversionsforpod"SDWebImage":

Insnapshot(Podfile.lock):

SDWebImage(=5.1.0)

In Podfile:

SDWebImage

None of your spec sources contain a spec satisfying the dependencies:`SDWebImage,SDWebImage(=5.1.0)`.

You have either:

*out-of-datesourcereposwhichyoucanupdatewith`podrepoupdate`orwith`podinstall--repo-update`.

*mistypedthenameorversion.

*notaddedthesourcerepothathoststhePodspectoyourPodfile.

Note:asofCocoaPods1.0,`podrepoupdate`doesnothappenon`podinstall`bydefault.

解决办法:.xcworkspace和Podfile.lock文件删除,重新pod install。

上一篇下一篇

猜你喜欢

热点阅读