標簽: 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
選項 如下圖現在我們可以運行模擬器,然后打開Reveal,就可以在Reveal界面的左上角,看到有模擬器可以連接調試,選擇它,則可以在Reveal中查看和調試該iOS程序的界面了。
新聞熱點
疑難解答