Load Reveal Without Changing Your Xcode Project
1 Open your iOS project in Xcode, and select View → Navigators → Show Breakpoint Navigator.
2 In the bottom left of the pane, click the + button and select Add Symbolic Breakpoint.
3 Enter
UIApplicationMain
into the Symbol field.4 Click the Add Action button, and ensure that Action is set to Debugger Command.
5 Copy and paste the following text into the field below:
expr (Class)NSClassFromString(@"IBARevealLoader") == nil ? (void *)dlopen("/Applications/Reveal.app/Contents/SharedSupport/iOS-Libraries/libReveal.dylib", 0x2) : ((void*)0)
- 6 Check Automatically continue after evaluating actions.
-
7 Right click the newly created breakpoint and select Move Breakpoint To → User.
-
8 In Xcode, build and run your application under the iOS Simulator.
最后如果运行不成功,在终端中输入如下命令:
dns-sd -B _reveal._tcp local