Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reveal调试 #15

Open
Bluelich opened this issue Jan 21, 2016 · 0 comments
Open

Reveal调试 #15

Bluelich opened this issue Jan 21, 2016 · 0 comments

Comments

@Bluelich
Copy link

我觉的动态加载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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant