美文网首页
Cocoapods pod 报错

Cocoapods pod 报错

作者: 请叫我大帅666 | 来源:发表于2019-11-23 10:29 被阅读0次
[!] CocoaPods could not find compatible versions for pod "iOSDFULibrary":
  In snapshot (Podfile.lock):
    iOSDFULibrary (= 4.5.1)

  In Podfile:
    iOSDFULibrary

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

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.

找了很久从一位仁兄那找到办法 https://www.cnblogs.com/hero11223/p/9904477.html

解决办法:

移除master
> 1. sudo rm -fr ~/.cocoapods/repos/master
移除缓存
> 2. sudo rm -fr ~/Library/Caches/CocoaPods/
> 3. pod setup

成功,贴张图......

image.png

相关文章

网友评论

      本文标题:Cocoapods pod 报错

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