简体   繁体   English

如何使用 Theos Tweak 连接到 Objective-C 方法

[英]How to hook into Objective-C method using Theos Tweak

I am trying to make to tweak using theos to hook into the application other than SpringBoard.我正在尝试使用 theos 进行调整以连接到 SpringBoard 以外的应用程序。 I picked up DVIA application.我拿起了DVIA应用程序。 I want to hook into the following objective-C method -(BOOL)isLoginValidated defined here .我想挂钩到以下 objective-C 方法-(BOOL)isLoginValidated defined here

Below, I have mentioned my Tweak inputs:下面,我提到了我的 Tweak 输入:

Tweak Setup调整设置

在此处输入图像描述

Make File Setup进行文件设置

在此处输入图像描述

Setup Tweak.x设置调整.x

在此处输入图像描述

I moved the relevant headers inside following directory我将相关标题移到以下目录中

/var/theos/include /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.但是每当我调用相应的应用程序/方法 (DVIA) 时,我在控制台中都看不到任何日志。

I am able to hook into the iOS system-level (SpringBoard) method but not able to hook into the any installed application.我能够连接到 iOS 系统级(SpringBoard)方法,但无法连接到任何已安装的应用程序。

Can you please help me out?你能帮帮我吗?

You need to add DEBUG=1 to enable any kind of logging in your makefile.您需要添加DEBUG=1以启用 makefile 中的任何类型的日志记录。 That should solve it.那应该解决它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM