Reveal的详细安装使用

王朝学院·作者佚名  2016-08-27
窄屏简体版  字體: 小  |  中  |  大  |  超大  

Reveal的详细安装使用标签: Reveal 工具 调试 iOS

一、终端的操作首先最重要的一点,要先把Reveal软件放到application中,否则路径是错的,后面的设置也就没有作用了

打开终端,输入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];

此时终端属于insert状态 按ESC退出插入状态

接下来 就要退出终端了shift+q键入命令行状态

在终端输入wq即保存退出

二、xcode内的设置点击该方法左边的行号区域,增加一个断点,之后右击该断点,选择Edit Breakpoint

点击Action项边右的Add Action,然后输入reveal_load_sim

勾选上Options上的Automatically continue after evaluating选项 如下图

三、见证神奇的时刻现在我们可以运行模拟器,然后打开Reveal,就可以在Reveal界面的左上角,看到有模拟器可以连接调试,选择它,则可以在Reveal中查看和调试该iOS程序的界面了。

 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
© 2005- 王朝網路 版權所有 導航