问题1,路径有问题
/Library/Ruby/Site/2.0.0/rubygems.rb:254:in `bin_path': can't find gem cocoapods (>= 0.a) (Gem::GemNotFoundException)
from /usr/local/bin/pod:22:in `<main>'
解决方法,rvm install ruby-2.0.0-p643(我的版本是2.0.0,所以用ruby-2.0.0-p643,自己对应版本)
问题二:不能用/usr/bin/xcodeproj
ERROR: While executing gem
... (Errno::EPERM)
Operation not permitted - /usr/bin/xcodeproj
解决方案1
sudo
nvram boot-args="rootless=0"
sudo
reboot(执行完这两句命令以后电脑会重启)如果没有解决问题使用解决方案二
解决方案2
sudo
gem install -n
/usr/local/bin
cocoapods
时间: 2024-12-10 10:40:49