标签:command 界面 name 技术分享 sim comm pos eal top
Reveal
注: 此处介绍Reveal,当中大部分内容来自于唐巧的《iOS开发进阶》一书。以此说明。
怎样使用Reveal进行模拟器调试。仅仅需进行下面三个步骤就可以。
1. 创建.lldbinit文件
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];
标签:command 界面 name 技术分享 sim comm pos eal top
原文地址:http://www.cnblogs.com/gavanwanggw/p/6937383.html