reveal 인터페이스 디 버 깅

http://blog.ittybittyapps.com/blog/2013/11/07/integrating-reveal-without-modifying-your-xcode-project/
Open up your favourite text editor, create the file .lldbinit file in your home directory and chuck the following LLDB command aliases into it:
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];```
        app

http://c.blog.sina.com.cn/profile.php?blogid=cb8a22ea89000gtw

    Terminal,   vim ~/.lldbinit       .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];
       lldb   4   ,        , 4       :

reveal_load_sim       reveal         
reveal_load_dev      reveal         
reveal_start   reveal    
reveal_stop    reveal    

   ,   AppDelegate   
application: didFinishLaunchingWithOptions:    ,   3   (     ):

            ,      ,       ,  “Edit Breakpoint”。
  ”Action”    ”Add Action”,    “reveal_load_sim”
   Options  ”Automatically continue after evaluating”  。

좋은 웹페이지 즐겨찾기