美文网首页
cocoapods导入第三方找不到

cocoapods导入第三方找不到

作者: 叔简 | 来源:发表于2020-11-17 11:54 被阅读0次

    [!] CocoaPods could not find compatible versions for pod "Masonry": In snapshot (Podfile.lock): Masonry (= 1.1.0, ~> 1.1.0) In Podfile: Masonry (~> 1.1.0) None of your spec sources contain a spec satisfying the dependencies:Masonry (~> 1.1.0), Masonry (= 1.1.0, ~> 1.1.0). You have either: * out-of-date source repos which you can update withpod repo updateor withpod 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 updatedoes not happen onpod installby default.

    网上下载的demo,尝试更新导入的第三方库,报错信息如上

    解决方法:根据提示:not added the source repo that hosts the Podspec to your Podfile,在pod文件中添加source来源,
    source 'https://github.com/CocoaPods/Specs.git'(添加位置如下)

    添加cocoapods库文件地址

    再次进行pod install,正常引入第三方库文件

    相关文章

      网友评论

          本文标题:cocoapods导入第三方找不到

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