标签: Reveal 工具 调试 iOS
vim ~/.lldbinit接着输入
command alias reveal_load_sim exPR (void*)dlopen("/Applications/Reveal.app/Contents/SharedSupport/iOS-Libraries/libReveal.dylib", 0x2);command alias reveal_load_dev expr (void*)dlopen([(NSString*)[(NSBundle*)[NSBundle mainBundle] pathForResource:@"libReveal" ofType:@"dylib"] cStringUsingEncoding:0x4], 0x2);command alias reveal_start expr (void)[(NSNotificationCenter*)[NSNotificationCenter defaultCenter] postNotificationName:@"IBARevealRequestStart" object:nil];command alias reveal_stop expr (void)[(NSNotificationCenter*)[NSNotificationCenter defaultCenter] postNotificationName:@"IBARevealRequestStop" object:nil];ESC退出插入状态shift+q键入命令行状态在终端输入wq 即保存退出
Edit BreakpointAction项边右的Add Action,然后输入reveal_load_simOptions上的Automatically continue after evaluating选项 如下图
现在我们可以运行模拟器,然后打开Reveal,就可以在Reveal界面的左上角,看到有模拟器可以连接调试,选择它,则可以在Reveal中查看和调试该iOS程序的界面了。
新闻热点
疑难解答