安装cocoapods
在运行 “sudo gem install cocoapods” 的时候出现问题:ERROR: While executing gem ... (Errno::EPERM)
Operation not permitted - /usr/bin/fuzzy_match
则可以改为:
sudo gem install -n /usr/local/bin cocoapods
安装monkey
hufengdeiMac:~ hufeng$ sudo gem install /usr/bin crash_monkey --no-ri --no-rdoc
ERROR: Could not find a valid gem '/usr/bin' (>= 0) in any repository
ERROR: Possible alternatives: userbin
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /usr/bin directory.
解决:sudo gem install -n /usr/local/bin crash_monkey --no-ri --no-rdoc
<font color=#ff0000>出现类似的问题,需要设置当前路径的访问权限;</font>