首页 > 解决方案 > Xcode:Pod update ArgumentError - Pod::Version 与 Gem::Version 的比较失败

问题描述

Pod install 工作找到,但 pod update 得到错误:

ArgumentError - comparison of Pod::Version with Gem::Version failed

之后我运行这个命令:

sudo gem update

但我得到这个错误:

You don't have write permissions for the /usr/bin directory.

搜索后,我运行以下命令:

sudo gem install cocoapods -n /usr/local/bin

我收到此错误:

undefined method `source_paths' for #<Gem::Specification:0x3fda7748b868 cocoapods-1.10.1>

标签: swiftxcodecocoapods

解决方案


推荐阅读