Reveal 查看模拟器上的APP

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.
Reveal 查看模拟器上的APP_第1张图片
setup-breakpoint-popup.jpg
  • 7 Right click the newly created breakpoint and select Move Breakpoint To → User.

    Reveal 查看模拟器上的APP_第2张图片
    move-breakpoint-to-user.jpg

  • 8 In Xcode, build and run your application under the iOS Simulator.


    Reveal 查看模拟器上的APP_第3张图片
    reveal-app-chooser.jpg

最后如果运行不成功,在终端中输入如下命令:

dns-sd -B _reveal._tcp local

你可能感兴趣的:(Reveal 查看模拟器上的APP)