美文网首页
reveal使用方法

reveal使用方法

作者: 刘香涛 | 来源:发表于2016-09-13 13:56 被阅读0次

一.直接使用

1.右击reveal.app-->显示包内容

2.将Reveal.framework考出来,参考下图

iOS库

3.将Reveal.framework导入工程-->然后添加lib.tbd-->Other Linker Flags 设置 -ObjC,参考下图

库添加 工程设置

4.编译,运行即可。

二.无侵入使用

1.在当前用户目录新建一个文件.lldbinit,位于~/.lldbinit,LLDB每次启动的时候都会加载这个文件。

2.在.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];

上述文件创建了4个命令:

reveal_load_sim,reveal_load_dev, reveal_start 和 reveal_stop

reveal_load_sim 这个只在iOS模拟器上有效。它从Reveal的应用程序bundle中找到并加载libReveal.dylib(请确保你把Reveal安装到了系统的Application文件夹,如果你换地方了,你修改上述的文件)。

reveal_load_dev 这个命令在iOS设备和模拟器上都有效。不过,它需要你在Build Phase中的的Copy Bundle Resources中加上libReveal.dylib,请确保没有放到Link Binary With Libraries这个地方。

reveal_start 这个命令发出一个通知启动Reveal Server。

reveal_stop 这个命令发出一个通知停止Reveal Server。

3.-(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 出打断点

4.在控制台输入 reveal_load_sim reveal_start

相关文章

  • reveal使用方法

    一.直接使用 1.右击reveal.app-->显示包内容 2.将Reveal.framework考出来,参考下图...

  • reveal工具的使用

    在Xcode中的使用方法: 1、首先安装好Reveal,下载地址:http://download.revealap...

  • Reveal的使用方法

    换了公司之后发现有一些之前的资料找不到了,所以还是老老实实的写上来吧~~ 第四步的代码如下(注意路径不要留空格):

  • Reveal最新使用方法

    之前使用方法粗略叙述 方法一:copyRevealServer和带有目标应用的BundleID到设备的/Libra...

  • [iOS] Reveal使用方法

    1.在官方网站下载软件 http://revealapp.com 2.安装软件运行 找到以下栏目 如图1所示. 3...

  • Reveal最新使用方法

    Reveal最新使用方法https://juejin.im/post/5b8d023551882542af1c89d5

  • iOS开发Reveal的使用方法/Reveal安装

    reveal4.0下载 * 建议支持正版 *点我下载密码: u2ew 1.安装略过 2.配置 ** 打开...

  • 越狱机 Reveal 使用方法

    在Cydia上下载Reveal2Loader或者Reveal Loader,然后在设置中会多出Reveal选项,就...

  • 八 iOS逆向-Reveal

    Reveal简介 Reveal环境配置 Reveal使用实例 一 Reveal简介 官网:https://reve...

  • iOS逆向工程

    Reveal 首先机器要越狱 用cydia下载Reveal 在设置中查看Reveal,Reveal->Enable...

网友评论

      本文标题:reveal使用方法

      本文链接:https://www.haomeiwen.com/subject/hwjmettx.html