遇到的问题
WWDC 2018之后,为了尝鲜Xcode 10,把电脑升级到了10.13.5。在升级Cocoapods的时候,遇到了Gem报错:
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /usr/bin directory.
解决方法
- 第一步:sudo gem install -n /usr/local/bin sass
- 第二部:sudo gem install -n /usr/local/bin cocoapods