附帶兩個(gè)版本的下載地址
Reveal1.6.3: http://www.sdifenzhou.com/reveal163.html
Reveal4: http://www.sdifenzhou.com/reveal4.html
首先回顧一下1.x的配置方法
vim ~/.lldbinit
復(fù)制下面這段:
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。
第二條估計(jì)也不能用了楞泼,需要用reveal_load_dev的可以自己試一下(我從來(lái)沒(méi)用過(guò),所以需要你自己來(lái)試下了)
reveal_start闯冷,reveal_stop與這個(gè)無(wú)關(guān)战秋,所以還是能正常使用。
參考:
http://blog.csdn.net/yongyinmg/article/details/39293015
reveal本地文件:file:///Applications/Reveal.app/Contents/SharedSupport/Documentation/Load%20Reveal%20Without%20Changing%20Your%20Xcode%20Project.html