Skip to content

Instantly share code, notes, and snippets.

@andersonvom
Last active January 24, 2022 23:50
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andersonvom/0b2df86da2a246b77884f398f4a11b40 to your computer and use it in GitHub Desktop.
Save andersonvom/0b2df86da2a246b77884f398f4a11b40 to your computer and use it in GitHub Desktop.
xcquiet hides a lot of the verbosity of xcodebuild without accidentally hiding useful, unexpected log entries.
#!/bin/bash
# Do you find `xcodebuild` too verbose but don't want `xcpretty`
# to swallow ALL the output, including sometimes useful output,
# all so that you can have more sane logs for your iOS builds?
# You also think using `-quiet` hides way too much info as well?
#
# This little snippet hides a lot of the verbosity of xcodebuild
# without accidentally hiding unexpected log lines.
#
# Usage: xcodebuild ... | xcquiet.sh
#
# Sample iOS full log size: ~7.5MB
# Sample iOS xcquiet trimmed log size: ~650KB
grep -v \
-e '^\s*export\|cd\|builtin-\|write-file' \
-e '/s\?bin/'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment