Activating Reveal with Breakpoints
I am really uneasy about changing project settings to enable Reveal, as it is not advisable to ship with the framework linked. Because of this, I prefer the breakpoint-lldb magic command documented on their integration guide.
The short of it is this:
- Create a Symbolic Breakpoint
- set the Symbol Name to
- Check Add Action, set to Debugger command
- Type in
expr (Class)NSClassFromString(@"IBARevealLoader") == nil ? (void *)dlopen("/Applications/Reveal.app/Contents/SharedSupport/iOS-Libraries/libReveal.dylib", 0x2) : ((void*)0)
- Check Automatically continue after evaulating
Then you just toggle the breakpoint when you want Reveal to be activated. Woot!