cocoapods 使用遇到问题 unable to satisfy the following requirements:

  • 使用 gem sources 查看ruby源,
  • 如果ruby源不为淘宝https的,建议修改为淘宝https的
  • 以上步骤执行完后再次执行 gem sources 查看源,如果为淘宝https的, 准备工作完成。然后去下载。
  • 在使用过程中,有时候需要update podfile文件中添加的开源库,但在update 过程中,在update过程中,可能会出现一下错误(原因:cocoapods本地缓存的版本比podlock中低)
cocoapods 使用遇到问题 unable to satisfy the following requirements:_第1张图片
podfile 与 podlock中版本不一致.jpg

解决办法:执行pod setup ,使本地缓存的cocoa pods库更新为最新。

  • setup完成后 ,可使用 pod list 查看所有cocoa pods库的版本,也可用 pod search xxxx查看(推荐)库的版本。
  • 库的版本与要使用的版本一致的话,进入到工程podfile文件目录,执行pod update 更新便可。

你可能感兴趣的:(cocoapods 使用遇到问题 unable to satisfy the following requirements:)