出現(xiàn)
xcrun -sdk iphoneos clang is unable to create an executable file.
終端輸入:
xcodebuild -showsdks
如果出現(xiàn)和下方一樣的內(nèi)容,則說明你的 Xcode 命令行工具路徑錯(cuò)誤.
error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
終端繼續(xù)輸入:
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer/
解決.