美文网首页
Reveal 查看模拟器上的APP

Reveal 查看模拟器上的APP

作者: xdkoo | 来源:发表于2015-09-26 15:59 被阅读191次

    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.
    setup-breakpoint-popup.jpg
    • 7 Right click the newly created breakpoint and select Move Breakpoint To → User.

      move-breakpoint-to-user.jpg
    • 8 In Xcode, build and run your application under the iOS Simulator.


      reveal-app-chooser.jpg

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

    dns-sd -B _reveal._tcp local
    

    相关文章

      网友评论

          本文标题:Reveal 查看模拟器上的APP

          本文链接:https://www.haomeiwen.com/subject/cerwcttx.html