Skip to content

Instantly share code, notes, and snippets.

@igor-makarov
Last active July 9, 2026 12:47
Show Gist options
  • Select an option

  • Save igor-makarov/5a358d07ccfd7486ba34813d7c2c0d13 to your computer and use it in GitHub Desktop.

Select an option

Save igor-makarov/5a358d07ccfd7486ba34813d7c2c0d13 to your computer and use it in GitHub Desktop.
`xcodebuild` wrapper script
#!/usr/bin/env bash
set -o pipefail
use_xcsift=false
xcodebuild_args=()
for arg in "$@"; do
if [[ "$arg" == "-xcsift" ]]; then
use_xcsift=true
else
xcodebuild_args+=("$arg")
fi
done
if [[ "$use_xcsift" != true ]]; then
exec /usr/bin/xcodebuild "${xcodebuild_args[@]}"
fi
log_file="$(mktemp -t xcodebuild)"
echo "xcodebuild output: $log_file"
/usr/bin/xcodebuild "${xcodebuild_args[@]}" 2>&1 | tee "$log_file" | xcsift -E -f toon
exit "${PIPESTATUS[0]}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment