Quantcast
Channel: 睿论坛 - 最新话题
Viewing all articles
Browse latest Browse all 5702

第一次遇到一个奇怪的问题,同一个hook方法,其他app都有日志打印,但是有一个感觉是注入不进去

$
0
0

@2beeNo1 wrote:

代码如下:

%hook AppDelegate

  • (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    NSLog(@“AppDelegate-didFinishLaunchingWithOptions:%@”,[[NSBundle mainBundle]bundleIdentifier]);
    return %orig;
    }
    %end

%hook UIViewController
-(void)viewWillAppear:(BOOL)animated{
NSLog(@“UIViewController-viewWillAppear:%@”,[[NSBundle mainBundle]bundleIdentifier]);
}
%end

问题:

hook的上面两个方法,测试的几个app都是从App Store里面下载的,非越狱应用。查看了几个app都是有效的,有日志输出,但是其中有一个无论如何都没有输出,我还尝试了很多方法都没有输出,感觉上是没有注入到进程里面? 请问是否存在这种App Store里面下载的app,注入不了的情况?有什么解决办法?
求教~

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 5702

Trending Articles