Using regular expression to find errors in a Xcode build log

Sometimes when I’m looking at a build log, I don’t Xcode open or available for me to sift out all the text and highlight what I am looking for.

In those instances, I have to turn to regular expressions to find any error code hidden in a really long build log.

Here is a regular expression to find any error text that has a non-zero number:
([1-9]|[1-9][0-9]|[1-9][0-9][0-9]) error

Leave a Reply

Your email address will not be published. Required fields are marked *