Reveal详细安装教程

Reveal的详细安装使用

标签: Reveal 工具 调试 iOS


一、终端的操作

  1. 首先最重要的一点,要先把Reveal软件放到Application中,否则路径是错的,后面的设置也就没有作用了
  2. 打开终端,输入vim ~/.lldbinit
  3. 接着输入
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];
  1. 此时终端属于 insert 状态 按ESC退出插入状态
  2. 接下来 就要退出终端了 shift+q键入命令行状态
  3. 在终端输入wq 即保存退出

二、xcode内的设置

  1. 点击该方法左边的行号区域,增加一个断点,之后右击该断点,选择Edit Breakpoint
  2. 点击Action项边右的Add Action,然后输入reveal_load_sim
  3. 勾选上Options上的Automatically continue after evaluating选项 如下图
    Reveal设置图片

三、见证神奇的时刻

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

转载于:https://www.cnblogs.com/wanglongshuai/p/4766913.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值