Open Yiiff opened 4 years ago
Just to be sure: did you blacklist setApiVersion:
with colon at the end (that is important because colon is part of selector name)? Do you get the same crash with the same selector after blacklisting?
Property names and ivars currently are not obfuscated.
I do add a colon at the end of the selector. And the app still crashed, so I do some test, and I found a result:
Test Code
#import "HomeViewController.h"
@interface HomeViewController () {
int _apiVersion;
NSString *_token;
NSString *_session;
}
/** Token */
@property (nonatomic, copy) NSString *token;
@end
_apiVersion and __token will be obfuscated as cstring, but _session_ is not.
property
method
and class name
was fine after obfuscated, cstring
was not.
Seems to be a random situation, I'm still analyzing the existing code, hoping to manually control the content of the property, just like this feature of the selector blacklist.
Hi Kam I do appreciate this repo help me to solve the obfuscator problem. But I found a problem when I obfuscated .app file. This is the log:
So I add this method to --objc-blacklist-selector, but app crash again.
After I dump header, I can't found this method, but there is a property with this name.
I want to know how to add an obfuscation strategy that does not obfuscate the specified attributes.