flutter报错:xcode-select: note: No developer tools were found, requesting install.
一,报错信息:
% flutter --version
xcode-select: note: No developer tools were found, requesting install.
If developer tools are located at a non-default location on disk, use `sudo xcode-select --switch path/to/Xcode.app` to specify the Xcode that you wish to use for command line developer tools, and cancel the installation dialog.
See `man xcode-select` for more details.
xcode-select: note: No developer tools were found, requesting install.
If developer tools are located at a non-default location on disk, use `sudo xcode-select --switch path/to/Xcode.app` to specify the Xcode that you wish to use for command line developer tools, and cancel the installation dialog.
See `man xcode-select` for more details.
二,解决:
如果 命令行开发者工具安装程序 没有自动启动,可以手动执行
% xcode-select --install
三,查看效果:
% xcode-select -p
/Library/Developer/CommandLineTools
可以看到命令行开发者工具安装到了/Library/Developer/CommandLineTools
浙公网安备 33010602011771号