Manually parse Xcodebuild logs
masterIf you are not using the Xcode GUI to build, you can manually extract compile information from xcodebuild logs. This creates a .compile file and updates buildServer.json with kind: manual.
Usage
From a build log file
xcode-build-server parse [-a] <build_log_file>From a piped command
<command_to_generate_build_log> | xcode-build-server parse [-a]Examples
Using xcodebuild directly:
xcodebuild -workspace *.xcworkspace -scheme <XXX> -configuration Debug build | xcode-build-server parse [-a]Using clipboard (if log is copied from Xcode UI):
pbpaste | xcode-build-server parse [-a]Important Notes
- First Run: Ensure the log is complete, otherwise files may lack correct flags.
- Incremental Updates: If you add files or change build settings (SDK, Debug/Release, macros), use the
-aflag to append new flags without removing existing ones. - Viewing Raw Output: To see
xcodebuildoutput while parsing, usetee:xcodebuild ... | tee build.log; xcode-build-server parse -a build.log >/dev/null 2>&1
xcodebuild -workspace *.xcworkspace -scheme <XXX> -configuration Debug build | xcode-build-server parse [-a]