iOS开发技术iOS精华工程

Reveal 界面调试工具

2016-02-03  本文已影响633人  SuyChen

Reveal是一个iOS程序界面调试工具,使用Reveal,我们可以在iOS开发时动态的查看和修改应用程序的界面,而不用反复的重启模拟器。

官网下载地址(30天免费试用):http://revealapp.com/

使用步骤:

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

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

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

(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)

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

(6)打开 Reveal 工具,左上角选中我们的「RevealTest」工程,然后就可以查看工程内 UI 的结构了。

上一篇下一篇

猜你喜欢

热点阅读