-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error while debugging NSBlock #12
Comments
I don't think blocks are supported by |
Still, we should be using |
Targets of patch Method.pm#L220 and Method.pm#L156. |
Blocks are ObjC objects; we can use %@ which gives something like |
So at the moment there is no way to intercept data from block by hooking methods in Theos? |
That's not what " For example, if I'm not mistaken: %hook ASDSoftwareUpdatesStore
- (void)reloadFromServerWithCompletionBlock:(void (^)(id data))block {
void (^interception)(id data) = ^(id data) {
HBLogDebug(@"data? %@", data);
block(data);
};
%orig(interception);
}
%end |
Should be aware that many system methods support receiving
|
What are the steps to reproduce this issue?
%hook ASDSoftwareUpdatesStore
- (void)reloadFromServerWithCompletionBlock:(void (^)(id data))block { %log; }
%end
What happens?
Here the output:
https://ghostbin.com/paste/qqma9
What were you expecting to happen?
Compile the tweak
What versions of software are you using?
Mac 0SX 10.2.1
iOS 10.2 (TARGET = iphone:clang:10.2)
The text was updated successfully, but these errors were encountered: