错误信息

[!] CocoaPods could not find compatible versions for pod "JYCustomSegmentView":
  In Podfile:
    JYCustomSegmentView (~> 0.1.8)

None of your spec sources contain a spec satisfying the dependency: `JYCustomSegmentView (~> 0.1.8)`.

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.

  

此时 说本机的 例如 Podfile中AFNetworking的版本更新到了3.1.0,但是本地.cocoapods下找不到相应的配置文件。

本地库太老了。。 你要更新一下子:Updating local specs repositories 

pod repo update实际是本地 更新整个.cocoapods下的所有库

 

sudo gem install cocoapods 更新最新版本的pod

 

posted on 2019-11-04 09:49  懂事长qingzZ  阅读(3427)  评论(0编辑  收藏  举报