附带两个版本的下载地址
Reveal1.6.3: http://www.sdifenzhou.com/reveal163.html
Reveal4: http://www.sdifenzhou.com/reveal4.html
首先回顾一下1.x的配置方法
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];
ps:vim的退出方法,按 esc 后输入 :wq 保存退出
2.x配置方法
2.x以及以上的dylib被改成了framework,所以需要改下路径名
command alias reveal_load_sim expr (void*)dlopen("/Applications/Reveal.app/Contents/SharedSupport/iOS-Libraries/RevealServer.framework/RevealServer", 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];
具体就是第一条中 libReveal.dylib 变成了 RevealServer.framework/RevealServer。
第二条估计也不能用了,需要用reveal_load_dev的可以自己试一下(我从来没用过,所以需要你自己来试下了)
reveal_start,reveal_stop与这个无关,所以还是能正常使用。
参考:
http://blog.csdn.net/yongyinmg/article/details/39293015
reveal本地文件:file:///Applications/Reveal.app/Contents/SharedSupport/Documentation/Load%20Reveal%20Without%20Changing%20Your%20Xcode%20Project.html