Using xcrun

Mar 22, 2019 • 预计阅读时间 1 分钟

Run a command with special toolchain

# using clang of toolchain org.llvm.8.0.0
xcrun --toolchain org.llvm.8.0.0 clang -v


clang version 8.0.0 
Target: x86_64-apple-darwin18.2.0
Thread model: posix
InstalledDir: /Applications/

Show SDK path

xcrun --show-sdk-path --sdk iphoneos
xcrun --show-sdk-path --sdk iphonesimulator
xcrun --show-sdk-path --sdk macosx

iOS/macOS Developer

fatal: cannot run gpg: No such file or directory

build LLVM 8 on macOS