Polidea / ios-class-guard

Simple Objective-C obfuscator for Mach-O executables.
http://www.polidea.com
1.64k stars 239 forks source link

Obfuscator hangs mid-obfuscation #32

Open EricFowlerHTC opened 9 years ago

EricFowlerHTC commented 9 years ago

I have a file that, when fed to the obfuscator, causes it to hang at this point:

2015-03-30 11:07:41.120 ios-class-guard[20143:4698377] Generating symbol table... 2015-03-30 11:07:41.121 ios-class-guard[20143:4698377] Protocols = 16 2015-03-30 11:07:41.121 ios-class-guard[20143:4698377] Classes = 136 2015-03-30 11:07:41.121 ios-class-guard[20143:4698377] Categories = 16 2015-03-30 11:07:41.121 ios-class-guard[20143:4698377] Methods = 1751 2015-03-30 11:07:41.121 ios-class-guard[20143:4698377] I-vars = 345 2015-03-30 11:07:41.121 ios-class-guard[20143:4698377] Forbidden keywords = 154210

Unfortunately, the history is such that I can't just unmake the last change (don't remember what it was).

Has anyone else seen this? Does anyone know how to get around it?

Thanks

EricFowlerHTC commented 9 years ago

This seems to be related to having an 'unclean' project. It appears / disappears in subsequent builds; it sometimes disappears if I fetch fresh code. So it seems some temporary files are hanging around - ?

If anyone knows, please tell. This is driving me crazy.

Thanks very much

chandan276 commented 8 years ago

How to obfuscate iOS project using Polidea project: https://github.com/Polidea/ios-class-guard

I am using this project to obfuscate my iOS project. Unfortunately, it is not working, throwing error.

I followed the steps provided to How to use it. But, when I am doing

bash obfuscate_project

The build was successful but it crashed after that. Here is the report:

ios-class-guard[57105:1897397] *\ Terminating app due to uncaught

exception 'NSInvalidArgumentException', reason: 'working directory doesn't exist.'

*\ First throw call stack: ( 0 CoreFoundation 0x00007fff856ad03c __exceptionPreprocess + 172 1 libobjc.A.dylib

0x00007fff88bf876e objc_exception_throw + 43 2 CoreFoundation

0x00007fff856aceed +[NSException raise:format:] + 205 3 Foundation

0x00007fff86d682a6 -[NSConcreteTask launchWithDictionary:] + 582 4

ios-class-guard 0x000000010f1db7d6

-[CDSystemProtocolsProcessor systemProtocolsSymbolsToExclude] + 534 5 ios-class-guard 0x000000010f1977e2 main + 6110 6

libdyld.dylib 0x00007fff8b4275c9 start + 1 )

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

NSException obfuscate_project: line 28: 57105 Abort trap: 6

"$@" Please let me know how to fix this issue.