Closed wenlei1990 closed 4 years ago
这个问题看起来是因为gem没有安装成功,因为/usr/bin路径没有写权限。这个问题其实是苹果的策略,从Mac "El Capitan"开始,/System, /bin, /sbin, or /usr (except /usr/local)这几个路径就默认不能更改了。细节可以看看: https://apple.stackexchange.com/questions/193368/what-is-the-rootless-feature-in-el-capitan-really?newreg=068dc403fea74a3eb1e434b955924023 以及 https://superuser.com/questions/717663/permission-denied-when-trying-to-cd-usr-local-bin-from-terminal
sudo gem install -n /usr/local/bin xcodeproj 单独执行了这个命令,还是不行