Module: XCPretty::Matchers::Errors

Included in:
Parser
Defined in:
lib/xcpretty/parser.rb

Constant Summary collapse

CLANG_ERROR_MATCHER =

$1 = whole error

/^(clang: error:.*)$/
CHECK_DEPENDENCIES_ERRORS_MATCHER =

$1 = whole error

/^(Code\s?Sign error:.*|Code signing is required for product type .* in SDK .*|No profile matching .* found:.*|Provisioning profile .* doesn't .*|Swift is unavailable on .*|.?Use Legacy Swift Language Version.*)$/
PROVISIONING_PROFILE_REQUIRED_MATCHER =

$1 = whole error

/^(.*requires a provisioning profile.*)$/
NO_CERTIFICATE_MATCHER =

$1 = whole error

/^(No certificate matching.*)$/
COMPILE_ERROR_MATCHER =

$1 = file_path $2 = file_name $3 = reason

/^(\/.+\/(.*):.*:.*):\s(?:fatal\s)?error:\s(.*)$/
CURSOR_MATCHER =

$1 cursor (with whitespaces and tildes)

/^([\s~]*\^[\s~]*)$/
FATAL_ERROR_MATCHER =

$1 = whole error. it varies a lot, not sure if it makes sense to catch everything separately

/^(fatal error:.*)$/
FILE_MISSING_ERROR_MATCHER =

$1 = whole error. $2 = file path

/^<unknown>:0:\s(error:\s.*)\s'(\/.+\/.*\..*)'$/
LD_ERROR_MATCHER =

$1 = whole error

/^(ld:.*)/
LINKER_DUPLICATE_SYMBOLS_LOCATION_MATCHER =

$1 file path

/^\s+(\/.*\.o[\)]?)$/
LINKER_DUPLICATE_SYMBOLS_MATCHER =

$1 reason

/^(duplicate symbol .*):$/
LINKER_UNDEFINED_SYMBOL_LOCATION_MATCHER =

$1 symbol location

/^(.* in .*\.o)$/
LINKER_UNDEFINED_SYMBOLS_MATCHER =

$1 reason

/^(Undefined symbols for architecture .*):$/
PODS_ERROR_MATCHER =

$1 reason

/^(error:\s.*)/
SYMBOL_REFERENCED_FROM_MATCHER =

$1 = reference

/\s+"(.*)", referenced from:$/
MODULE_INCLUDES_ERROR_MATCHER =

$1 = error reason

/^\<module-includes\>:.*?:.*?:\s(?:fatal\s)?(error:\s.*)$/