Last active
January 24, 2022 23:50
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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