How to hook into Objective-C method using Theos Tweak

860 Views Asked by At

I am trying to make to tweak using theos to hook into the application other than SpringBoard. I picked up DVIA application. I want to hook into the following objective-C method -(BOOL)isLoginValidated defined here.

Below, I have mentioned my Tweak inputs:

Tweak Setup

enter image description here

Make File Setup

enter image description here

Setup Tweak.x

enter image description here

I moved the relevant headers inside following directory

/var/theos/include

After that, I installed my tweaks on using the above files. But whenever I call the respective application/method (DVIA), I don't see any Log in the console.

I am able to hook into the iOS system-level (SpringBoard) method but not able to hook into the any installed application.

Can you please help me out?

1

There are 1 best solutions below

0
cole On

You need to add DEBUG=1 to enable any kind of logging in your makefile. That should solve it.