iOS-Pro
iOS-Pro copied to clipboard
Reveal调试
我觉的动态加载libReveal.dylib 是更好的办法,不会修改工程文件.
官方步骤:
1.打开工程,选择 View → Navigators → Show Breakpoint Navigator。
在面板左下角,点击 + 按钮并选择Add Symbolic Breakpoint。
2.Adding Symbolic Breakpoint to Xcode project,在 Symbol 输入区内输入 UIApplicationMain 。
点击 Add Action 按钮, 确认 Action 被设置为 Debugger Command。
3.将以下内容拷贝到 Action 的输入区内:
expr (Class)NSClassFromString(@"IBARevealLoader") == nil ? (void )dlopen("/Applications/Reveal.app/Contents/SharedSupport/iOS-Libraries/libReveal.dylib", 0x2) : ((void)0)
Note: 请确认Reveal.app的路径信息符合您Mac的实际位置。
4.选中 Automatically continue after evaluating actions 选项。
5.右击刚才新创建的断点,选择 Move Breakpoint To → User → Moving the Breakpoint to the User
您可以像其他断点一样,禁用或启用此断点。All done!
Note:用户级别断点在所有的Xcode工程中都可以使用。现在在iOS模拟器上构建并运行您的应用。
地址:http://support.revealapp.com/kb/getting-started/revealxcodereveal