1揍堕、gem sources --add https://gems.ruby-china.com/
出現(xiàn)
?ERROR: While executing gem ... (Gem::Exception) Unable to require openssl, install OpenSSL and rebuild ruby (preferred) or use non-HTTPS sources
當(dāng):pod install
解決:重裝rvm
借鑒:https://stackoverflow.com/questions/37336573/unable-to-require-openssl-install-openssl-and-rebuild-ruby-preferred-or-use-n
2、rvm reinstall 2.3.0 --with-openssl-dir=/usr/local/opt/openssl
出現(xiàn)錯(cuò)誤
/usr/local/Cellar/ruby/2.4.0/lib/ruby/2.4.0/rubygems.rb:270:in `find_spec_for_exe': can't find gem cocoapods (>= 0.a) (Gem::GemNotFoundException)
from /usr/local/Cellar/ruby/2.4.0/lib/ruby/2.4.0/rubygems.rb:298:in `activate_bin_path'
from /usr/local/bin/pod:22:in `main'原因:卸載cocoapods锅棕,并沒(méi)有安裝
3映穗、將“podfile”恶阴、“podfile.lock”诈胜、“Pods”、“XXX.xcworkspace”以及“XXX.xcodeproj”包文件“project.xcworkspace”刪除存淫,重新pod install之后耘斩,工程編譯出現(xiàn)報(bào)錯(cuò):no such file or directory: '/Users/pengzhiyao/Desktop/WorkerBee/Pods/XXX'
解決:sudo pod install
借鑒:https://www.cnblogs.com/chuange-Strongload/p/5891903.html