有一天,我下了AudioKit準備體驗他的一些比較酷的東西。結(jié)果出現(xiàn)了一個錯誤。
In Terminal?
$ cd framework_dirs?
$ ./build_frameworks.sh
Building frameworks for platforms: iOS macOS tvOS
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

what's going on?
我猜可能是我剛剛重裝了筆記本,xcodebuild找不到Xcode,所以我們要重定向一下Xcode的文檔的位置。
$ sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer/
輸入密碼后就搞定了。