Cocoapods pod 报错

[!] 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

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

Cocoapods pod 报错_第1张图片
image.png

你可能感兴趣的:(Cocoapods pod 报错)