- sudo gem install cocoapods
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /usr/bin directory.
sudo gem install cocoapods -n /usr/local/bin
- 查看数据源
gem sources -l
- 移除数据源
gem sources --remove
- 添加数据源
gem sources --add
https://gems.ruby-china.com
- You can find out where a gem is installed with gem which cocoapods.
gem which cocoapods
- 查看当前Ruby版本
ruby -v
- 查看当前RubyGems版本
gem -v
- 更新当前RubyGems版本
gem update --system
- 查看当前CocoaPods版本
pod --version
特别鸣谢
CocoaPods安装
https://www.jianshu.com/p/ab6411a05bc2
CocoaPods使用
https://www.jianshu.com/p/44e73dca395d
[iOS] 基于CocoaPods 实现对XcodeProject的管理
https://www.jianshu.com/p/0bf291de94f7