使用Reveal

添加Reveal.framework,设置Other link flags 添加Debug为 -ObjC,添加 libz 库

 

这里介绍 Reveal UI 分析工具的简单使用,至于使用他分析手机 App 的做法,可查看如下文章:

使用步骤:

(1)安装好 Reveal 后,我们使用 Xcode 创建一个名为「RevealTest」的工程

blob.png

blob.png

(2) 为「RevealTest」的工程添加「Reveal framework」;打开 Reveal 工具的 Help 菜单找到「Reveal framework」对应的路径,然后直接拖动他到我们的工程上,这时会弹出对话框,记得勾选「Copy items if needed」

blob.png

blob.png

blob.png

blob.png

(3)为「RevealTest」的工程的「Build Settings」下的「Other Linker Flags」添加「Any iOS Simulator SDK」项,对应的值为「-ObjC」

blob.png

(4)这时运行工程,出现报错,报错内容为如下,这时我们需要引入「libz.dylib」库,然后重新运行工程

Undefined symbols for architecture x86_64:

"_deflate", referenced from:

-[IBAHTTPJSONResponse initWithJSONString:compress:] in Reveal(IBAHTTPJSONResponse.o)

"_deflateEnd", referenced from:

-[IBAHTTPJSONResponse initWithJSONString:compress:] in Reveal(IBAHTTPJSONResponse.o)

"_deflateInit2_", referenced from:

-[IBAHTTPJSONResponse initWithJSONString:compress:] in Reveal(IBAHTTPJSONResponse.o)

blob.png

blob.png

blob.png

(5)这时工程运行成功,提示「Reveal Server started (Protocol Version 18).」,这时就可以打开 Reveal 工具进行玩耍了

blob.png

(6)打开 Reveal 工具,左上角选中我们的「RevealTest」工程,然后就可以查看工程内 UI 的结构了。更强大的功能,请查阅更多网络资料,慢慢摸索

blob.png

blob.png

posted @ 2015-10-30 13:47  橘子与布丁  阅读(199)  评论(0编辑  收藏  举报