theos - Access instance variable of dumped headers (iOS) -


i want know value of "_lastnotificationreceivedbundleidentifier" instance variable of class. header dumped ios springboard app.

@interface sbremotenotificationserver : nsobject <apsconnectiondelegate> {     nsmutabledictionary* _bundleidentifierstoclients;     nsmutabledictionary* _environmentstoconnections;     unsigned _lastplayedalertsound;     nsstring* _lastnotificationreceivedbundleidentifier; } 

but following code not work:

%hook sbremotenotificationserver -(void)noteapplicationfinishedlaunching:(id)launching{     nslog(@"identifier=%@",_lastnotificationreceivedbundleidentifier);     %orig; } %end 

and compiler error is:

error: ‘_lastnotificationreceivedbundleidentifier’ not declared in scope 

how access , log nsstring?

you use objective-c runtime capabilities , take @ method object_getinstancevariable(the_object, "_lastnotificationreceivedbundleidentifier", (void**)&yourpointer);


Comments

Popular posts from this blog

matlab - Deleting rows with specific rules -

php - MySQLi multi_query results for later use -