klaus01 / KLGenerateSpamCode

iOS 马甲应用工具
MIT License
1.98k stars 539 forks source link

libc++abi.dylib: terminating with uncaught exception of type NSException #47

Open liujieyuu opened 5 years ago

liujieyuu commented 5 years ago

执行./GenerateSpamCode \

/Users/xxx/Documents/work/XXX \ -deleteComments 提示: Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: ' -[NSRegularExpression enumerateMatchesInString:options:range:usingBlock:]: nil argument' *** First throw call stack: ( 0 CoreFoundation 0x00007fff51ec9571 __exceptionPreprocess + 256 1 libobjc.A.dylib 0x00007fff7de7aefb objc_exception_throw + 48 2 CoreFoundation 0x00007fff51ec93a3 +[NSException raise:format:] + 193 3 Foundation 0x00007fff541e50dc -[NSRegularExpression(NSMatching) enumerateMatchesInString:options:range:usingBlock:] + 223 4 Foundation 0x00007fff541e4feb -[NSRegularExpression(NSMatching) matchesInString:options:range:] + 146 5 GenerateSpamCode 0x00000001082eae56 regularReplacement + 502 6 GenerateSpamCode 0x00000001082ed8ba deleteComments + 794 7 GenerateSpamCode 0x00000001082ed7b0 deleteComments + 528 8 GenerateSpamCode 0x00000001082ed7b0 deleteComments + 528 9 GenerateSpamCode 0x00000001082ed7b0 deleteComments + 528 10 GenerateSpamCode 0x00000001082ed7b0 deleteComments + 528 11 GenerateSpamCode 0x00000001082ed7b0 deleteComments + 528 12 GenerateSpamCode 0x00000001082ed7b0 deleteComments + 528 13 GenerateSpamCode 0x00000001082ec2ef main + 3695 14 libdyld.dylib 0x00007fff7ef41085 start + 1 15 ??? 0x0000000000000003 0x0 + 3 ) libc++abi.dylib: terminating with uncaught exception of type NSException Abort trap: 6