[!] 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'(添加位置如下)
再次进行pod install,正常引入第三方库文件
网友评论