Error: Running Homebrew as root is extremely dangerous and no longer supported.
As Homebrew does not drop privileges on installation you would be giving all
build scripts full access to your system.
flutter 安装
cocoapods的时候
brew install cocoapods
出现此bug
解决方案:新窗口打开。不要使用su权限