Skip to content

Instantly share code, notes, and snippets.

@steipete
Last active March 21, 2017 11:33
Show Gist options
  • Save steipete/5333a5903e3a50ad14b3 to your computer and use it in GitHub Desktop.
Save steipete/5333a5903e3a50ad14b3 to your computer and use it in GitHub Desktop.
Load Reveal from lldb. Put into ~/.lldbinit, pause app, type reveal. Will only work in Simulator.
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((const char *)[(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 alias reveal expr (void*)dlopen("/Applications/Reveal.app/Contents/SharedSupport/iOS-Libraries/libReveal.dylib", 0x2), (void)[(NSNotificationCenter*)[NSNotificationCenter defaultCenter] postNotificationName:@"IBARevealRequestStart" object:nil];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment