Error: No Xcode is selected. But ...


情況: 本機未安裝任何 Xcode.但是已安裝 Command Line Tools.

問題是

1
xcode-select: Error: No Xcode is selected. Use xcode-select -switch <path-to-xcode>, or see the xcode-select manpage (man xcode-select) for further information.

解決是

1
2
1. 獨立安裝完成 Command Line Tools
2. 打開終端輸入 sudo xcode-select -switch /usr/bin