You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Aspects(https://github.com/steipete/Aspects) only supports hooking instance methods, bug not class methods. The code changing you mentioned is for supporting hooking class methods.
Thanks a lot. Emmmmm, I test hooking class method as you told me, but I can't get the methodSignature, then identifierWithSelector:object:options:block:error: directly return nil
staticBOOLaspect_isCompatibleBlockSignature(NSMethodSignature *blockSignature, id object, SEL selector, NSError **error) {
NSCParameterAssert(blockSignature);
NSCParameterAssert(object);
NSCParameterAssert(selector);
BOOL signaturesMatch = YES;
NSMethodSignature *methodSignature = [[object class] instanceMethodSignatureForSelector:selector];
...
// the methodSignature is nil
Hello, Can I ask you why choose AssociatedObject instead of singleton NSMutableSet in RFAspects.m? Is it for the memory optimization? Thank you
The text was updated successfully, but these errors were encountered: