报错: ash-3.2$ sudo port install wget Password: Warning: xcodebuild exists but failed to execute Warning: configured user/group adm does not exist, will build as root Warning: Xcode appears to be installed but xcodebuild is unusable; some ports will likely fail to build. Warning: You may need to run `sudo xcode-select -switch /Applications/Xcode.app` ---> Computing dependencies for wget
解决方式:
1、打开终端,执行:
xcode-select --install
若是已安装会提示xcode-select: error: command line tools are already installed, use "Software Update" to install updates。
若未安装,则会弹出安装窗口,输入密码安装即可。
2、待安装完成,在终端执行:
sudo xcode-select -switch /Applications/Xcode.app
3、在终端执行:
which xcodebuild
提示:/usr/bin/xcodebuild
在终端执行
/usr/bin/xcodebuild
提示:error: can't exec '/Developer/usr/bin/xcodebuild' (No such file or directory)
xcode-select。