swift - 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>
解决方案
推荐阅读
- sql-server - 在 SQL Server 中添加不同的
- android - React Native Android 应用程序发布构建(使用 Hermes)仅在通过 Play 商店下载时很慢
- box - 无法将文件上传到盒子
- reactjs - 在 useEffect 中反应内存泄漏警告
- flutter - Firebase 存储 url 私有访问
- java - 尝试运行 appium 但应用程序自动关闭并显示错误
- python-3.x - 蟒蛇:任务得到了不好的收益:
- docker - 无法让 PostGis 图像改为用作本地文件
- java - 在 xml 的响应正文中删除 <
- css - 如何修复 react-datepicker 总是移到下一行并将其他人推到下一行