pods安装

mark~ 10.11 cocoapods安装

折月煮酒 提交于 2019-11-30 01:36:06
执行 sudo gem install cocoapods 出现错误: ERROR: While executing gem ... (Errno::EPERM) Operation not permitted - /usr/bin/xcodeproj 自定义GEM_HOME $ mkdir -p $HOME/Software/ruby $ export GEM_HOME=$HOME/Software/ruby $ gem install cocoapods [...] 1 gem installed $ export PATH=$PATH:$HOME/Sofware/ruby/bin $ pod --version 0.39.0 执行完这句如果报告以下错误: ERROR: Could not find a valid gem 'cocoapods' (>= 0), here is why: Unable to download data from https://rubygems.org/ - Errno::ETIMEDOUT: Operation timed out - connect(2) ( https://rubygems.org/latest_specs.4.8.gz ) ERROR: Possible alternatives: cocoapods