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中查看和调试该iOS程序的界面了。

最新文章

  1. [ASP.NET MVC 小牛之路]03 - Razor语法
  2. python学习道路(day6note)(time &datetime,random,shutil,shelve,xml处理,configparser,hashlib,logging模块,re正则表达式)
  3. .NET Core也可以使用MongoDB了
  4. CF 706B 简单二分,水
  5. VB6.0和VB.Net的函数等对照表
  6. JS来操作hover
  7. WPF:行列显示
  8. 咏南CS多层插件式开发框架支持最新的DELPHI XE7
  9. shell自定义函数
  10. bind的例子
  11. bzoj1055
  12. Windows 7 USB DVD Download Tool 制作的U盘无法启动安装Windows7 SP1
  13. shell判断文件是否存在,不存在则创建
  14. [poj1185]炮兵阵地_状压dp
  15. C语言第四次作业--嵌套循环
  16. every、some数组方法
  17. 004.Ansible Ad-Hoc命令集
  18. Hadoop2.7.6_06_mapreduce参数优化
  19. Using Android Phone to recover SD card formatted with DD command under linux
  20. Appium入门(7)__Appium Desired Capabilities

热门文章

  1. chown virtualbox
  2. leetcode--200--python(深度广度优先遍历实现代码)
  3. SQL基础教程(第2版)第7章 集合运算:练习题
  4. DFS判断连通图
  5. 推荐Markdown编辑器——Inspire
  6. 拉格朗日乘子(Lagrange multify)和KKT条件
  7. 十、GUI编程
  8. 踏出第一步——安装并跑通python程序
  9. linux安装nginx步骤
  10. lombak-插件使用