Skip to content

Instantly share code, notes, and snippets.

@mokagio
Created September 25, 2015 04:18
Show Gist options
  • Save mokagio/a950bacd391da11b3da7 to your computer and use it in GitHub Desktop.
Save mokagio/a950bacd391da11b3da7 to your computer and use it in GitHub Desktop.
Reveal LLDB command aliases, for Homebrew Cask installations
# Reveal LLDB aliases
# See http://blog.ittybittyapps.com/blog/2013/11/07/integrating-reveal-without-modifying-your-xcode-project/ for process explanation
command alias reveal_load_sim expr (Class)NSClassFromString(@"IBARevealLoader") == nil ? (void *)dlopen("/opt/homebrew-cask/Caskroom/reveal/latest/Reveal.app/Contents/SharedSupport/iOS-Libraries/libReveal.dylib", 0x2) : ((void*)0)
command alias reveal_load_dev expr (Class)NSClassFromString(@"IBARevealLoader") == nil ? (void *)dlopen([(NSString*)[(NSBundle*)[NSBundle mainBundle] pathForResource:@"libReveal" ofType:@"dylib"] cStringUsingEncoding:0x4], 0x2) : ((void*)0)
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];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment