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

Hook到了一个函数,打印arg1的属性报错

$
0
0

@a906335708 wrote:

我想hook 一个app定位回调,看到arg1中有个m_loactionMgrList数组 里面可能是我想要的 但是想打印编译不了
%hook MMLocationMgr

  • (void)locationManager:(id)arg1 didUpdateToLocation:(id)arg2 fromLocation:(id)arg3{
    NSLog(@"\n定位didUpdateToLocationarg1 %@\n",arg1.m_loactionMgrList); //这一行编译不通过
    NSLog(@"\n定位didUpdateToLocationarg2 %@\n",arg2);
    NSLog(@"\n定位didUpdateToLocationarg3 %@\n",arg3);
    %orig;

}
%end

可能是需要在某个地方声明下? 请问在哪里呢,我尝试在几个地方声明 但是都报错

Posts: 9

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 5702

Trending Articles