Reveal做为分析APP UI的利器确实很是好用,用来查看任意UI布局也很方便html
一.模拟器进行分析vim
1.打开Reveal(http://revealapp.com下载)xcode
2.打开Xcodeapp
3.Reveal——Help——Show Reveal Library in Finder工具
4.Xcode——导入Reveal.framework至当前项目中布局
5. 工程设置中,在Other Linker Flags项增长-ObjC -framework Revealpost
6.运行当前项目后,打开Reveal,选择当前运行程序进行关联测试
7.链接成功后,应用的UI层次 元素均可以妥妥的看到了lua
二.延长Reveal试用时间命令行
对于官网下载的Reveal,默认给予的是30天的使用限制,而后得付款……在天朝讲究付款(=寻找破解方法),而后开始找破解方法,http://jingwei6.me/2014/02/28/reveal_crack.html直接看结论:
”因此,要想永久试用Reveal,只须要打开
把IBAApplicationPersistenceData这一项删除就是了。”
标签: 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 Breakpoint
Action
项边右的Add Action
,而后输入reveal_load_sim
Options
上的Automatically continue after evaluating
选项 以下图