- 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
- 查看數(shù)據(jù)源
gem sources -l
- 移除數(shù)據(jù)源
gem sources --remove
- 添加數(shù)據(jù)源
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安裝
http://www.reibang.com/p/ab6411a05bc2
CocoaPods使用
http://www.reibang.com/p/44e73dca395d
[iOS] 基于CocoaPods 實現(xiàn)對XcodeProject的管理
http://www.reibang.com/p/0bf291de94f7