XianyuTech / flutter-boot

A native-flutter-hybrid develop tool helps you add and develop flutter with your existing app
621 stars 68 forks source link

关联iOS项目出错 #18

Closed wenlei1990 closed 4 years ago

wenlei1990 commented 5 years ago
屏幕快照 2019-11-07 下午5 56 10

sudo gem install -n /usr/local/bin xcodeproj 单独执行了这个命令,还是不行

wenlei1990 commented 5 years ago
屏幕快照 2019-11-07 下午6 29 36
yinma848 commented 5 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