使用Reveal分析APP的UI结构
2016-06-03 本文已影响91人
言末
此方法只适用于有源码的项目,并不适用分析任意APP。如有需要分析任意APP请猛点这里
-
首先下载Revleal破解版(纯属废话) 最后有整个操作步骤的GIF。
-
启动Reveal 选中菜单栏中的Help-->Show Reveal Library in Finder --> iOS Library.
拖动添加Reveal.framework到工程中。选中 Copy items into destination group's folder (if needed)以及当前的targets。
Paste_Image.png
-
TARGETS中设置命令
TARGETS --> Settings --> Other Linker Flags -->Any iOS Simulator SDK(选择这个命令是指任何模拟器运行reveal都能分析) -ObjC
Paste_Image.png
-
这时运行工程,出现报错,报错内容为如下,这时我们需要引入「libz.dylib」库,然后重新运行工程
Paste_Image.png
Paste_Image.png
再次运行,成功如下
Paste_Image.png
-
打开 Reveal 工具,左上角选中我们的「你的工程名字」工程,然后就可以查看工程内 UI 的结构了。如图:

附上整个操作的GIF
