準(zhǔn)備Handbrake的環(huán)境時(shí)雀彼,
./configure --launch-jobs=$(sysctl -n hw.ncpu) --launch
運(yùn)行時(shí)乒省,出現(xiàn)了以下提示:
xcode-select: error: tool 'xcodebuild' requires Xcode,
but active developer directory '/Library/Developer/CommandLineTools'
is a command line tools instance
這種情況是xcodebuild的路徑不正確定嗓。
localhost:HandBrake Private$ xcode-select --print-path
/Library/Developer/CommandLineTools
localhost:Developer Private$ xcodebuild -showsdks
xcode-select: error: tool 'xcodebuild' requires Xcode,
but active developer directory '/Library/Developer/CommandLineTools'
is a command line tools instance
將路徑切換到Xcode的目錄下:
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer/
References:
https://handbrake.fr/docs/en/1.1.0/developer/build-mac.html
https://blog.csdn.net/woaizijiheni/article/details/50614062