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
選項 以下圖