美文网首页
CocoaPods could not find compati

CocoaPods could not find compati

作者: Peter杰 | 来源:发表于2019-11-27 09:04 被阅读0次

    今天接到,新项目CocoaPads的时候,需要以下问题:

    [!] CocoaPods could not find compatible versions for pod "SDWebImage":
      In snapshot (Podfile.lock):
        SDWebImage (= 5.3.0)
    
      In Podfile:
        SDWebImage
    
    None of your spec sources contain a spec satisfying the dependencies: `SDWebImage, SDWebImage (= 5.3.0)`.
    
    You have either:
     * out-of-date source repos which you can update with `pod repo update` or with `pod install --repo-update`.
     * mistyped the name or version.
     * not added the source repo that hosts the Podspec to your Podfile.
    
    Note: as of CocoaPods 1.0, `pod repo update` does not happen on `pod install` by default.
    

    解决方法:把.xcworkspace和Podfile.lock文件删除,重新pod install一下就好了!

    相关文章

      网友评论

          本文标题:CocoaPods could not find compati

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