更新fastlane版本报错ERROR: While executing gem ...

更新fastlane时终端输入 sudo gem install fastlane 报这个错 ERROR:  While executing gem ... (Gem::FilePermissionError)

    You don't have write permissions for the /usr/bin directory. 

需要输入这句命令 sudo gem install cocoapods -n /usr/local/bin 即可

你可能感兴趣的:(更新fastlane版本报错ERROR: While executing gem ...)