How to make xcodebuild print compile errors and warnings to stderr?
问题 Seems like xcodebuild prints everything to stdout. $ /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -project test.xcodeproj build -target test -configuration Debug -jobs 3 2>err # xcodebuild stdout with bunch of warnings and errors $ cat err ** BUILD FAILED ** The following build commands failed: CompileC _build/test.build/Objects-normal/x86_64/test.o /Users/me/test/test.cpp normal x86_64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler (1 failure) That doesn't let my