{"action":"created","issue":{"url":"https://api.github.com/repos/alexzielenski/ZKSwizzle/issues/2","repository_url":"https://api.github.com/repos/alexzielenski/ZKSwizzle","labels_url":"https://api.github.com/repos/alexzielenski/ZKSwizzle/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/alexzielenski/ZKSwizzle/issues/2/comments","events_url":"https://api.github.com/repos/alexzielenski/ZKSwizzle/issues/2/events","html_url":"https://github.com/alexzielenski/ZKSwizzle/issues/2","id":135921858,"number":2,"title":"hooking UIViewController method","user":{"login":"iMokhles","id":1247248,"avatar_url":"https://avatars.githubusercontent.com/u/1247248?v=3","gravatar_id":"","url":"https://api.github.com/users/iMokhles","html_url":"https://github.com/iMokhles","followers_url":"https://api.github.com/users/iMokhles/followers","following_url":"https://api.github.com/users/iMokhles/following{/other_user}","gists_url":"https://api.github.com/users/iMokhles/gists{/gist_id}","starred_url":"https://api.github.com/users/iMokhles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iMokhles/subscriptions","organizations_url":"https://api.github.com/users/iMokhles/orgs","repos_url":"https://api.github.com/users/iMokhles/repos","events_url":"https://api.github.com/users/iMokhles/events{/privacy}","received_events_url":"https://api.github.com/users/iMokhles/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-02-24T01:32:54Z","updated_at":"2016-02-24T01:46:34Z","closed_at":"2016-02-24T01:39:38Z","body":"i'm trying to hook this method ( using ) fakelogo.h but it keep crashing\r\n\r\n**CRASH**\r\n```\r\nFeb 24 02:27:44 iMokhless-iPad WhatsApp[865] <Warning>: ZKSwizzle: incompatible type encoding for _presentViewController:withAnimationController:completion:. (expected v40@0:8@16@24@?32, got v40@0:8@16@24@32)\r\nFeb 24 02:27:44 iMokhless-iPad WhatsApp[865] <Error>: +[UIViewController _ZK_unconditionallySwizzle]: unrecognized selector sent to class 0x1a210c458\r\nFeb 24 02:27:44 iMokhless-iPad WhatsApp[865] <Error>: *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[UIViewController _ZK_unconditionallySwizzle]: unrecognized selector sent to class 0x1a210c458'\r\n\t*** First throw call stack:\r\n\t(0x1847e9900 0x183e57f80 0x1847f0514 0x1847ed5b8 0x1846f168c 0x10262e930 0x183e5a0cc 0x183e5ae30 0x1200ddd3c 0x1200ec960 0x1200ebb20 0x1200ebbd4 0x1200de08c 0x1200e20fc 0x1200dd044)\r\n```\r\n\r\n**CODE I USE**\r\n```\r\nhook(UIViewController)\r\n- (void)_presentViewController:(id)arg1 withAnimationController:(id)arg2 completion:(id /* block */)arg3 {\r\n_orig(void, arg1, arg2, arg3);\r\n}\r\nendhook\r\n```\r\n\r\nany idea ? "},"comment":{"url":"https://api.github.com/repos/alexzielenski/ZKSwizzle/issues/comments/188004380","html_url":"https://github.com/alexzielenski/ZKSwizzle/issues/2#issuecomment-188004380","issue_url":"https://api.github.com/repos/alexzielenski/ZKSwizzle/issues/2","id":188004380,"user":{"login":"alexzielenski","id":351783,"avatar_url":"https://avatars.githubusercontent.com/u/351783?v=3","gravatar_id":"","url":"https://api.github.com/users/alexzielenski","html_url":"https://github.com/alexzielenski","followers_url":"https://api.github.com/users/alexzielenski/followers","following_url":"https://api.github.com/users/alexzielenski/following{/other_user}","gists_url":"https://api.github.com/users/alexzielenski/gists{/gist_id}","starred_url":"https://api.github.com/users/alexzielenski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexzielenski/subscriptions","organizations_url":"https://api.github.com/users/alexzielenski/orgs","repos_url":"https://api.github.com/users/alexzielenski/repos","events_url":"https://api.github.com/users/alexzielenski/events{/privacy}","received_events_url":"https://api.github.com/users/alexzielenski/received_events","type":"User","site_admin":false},"created_at":"2016-02-24T01:46:34Z","updated_at":"2016-02-24T01:46:34Z","body":"What are this fakelogo.h and these hook() macros you are using?"}}