[!] CocoaPods could not find com
[!] 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。