安装Reveal以及NO Connent<二>

在上一篇博客中提到了Reveal 连接模拟器调试,那么,今天我们来交流下 Reveal 连接真机调试:

在 上一篇博客中,我们 对 eveal_load_sim 这个也许会感到陌生(在断点编辑的时候要设置的)我们在Reveal 连接真机调试 之前来介绍下下面的知识点:


eveal_load_sim – This alias only works when running your app on the iOS Simulator. It loads the libReveal.dylib from the Reveal application bundle (assuming you put Reveal in your system’s Applications folder). If you have Reveal elsewhere change the alias to reflect this.
eveal_load_sim–这个别名只有当应用程序运行在iOS模拟器。它加载的libreveal.dylib从揭示应用程序包(假设你把你的系统的应用程序文件夹显示)。如果你已经揭示了其他地方改变别名,以反映这个。


reveal_load_dev – This alias works when running your app on device or in the iOS Simulator. It however assumes you have added the libReveal.dylib bundled with Reveal to your application’s Copy Resources build phase. (Make sure it is not in your Link Binary with Libraries build phase. Yes, I was fibbing a little about not having to modify your Xcode project. Sorry.
reveal_load_dev–别名工程运行您的应用程序在设备上或在iOS模拟器时。然而,假设你已经添加了捆绑在一起的libreveal.dylib透露给你的应用程序的副本资源建设阶段。确保它不是在你的链接二进制与库建立阶段。是的,我是说一点没有修改你的Xcode项目。对不起的.


reveal_start – This alias posts a notification via NSNotificationCenter to start the Reveal server.
reveal_start–别名张贴通知通过NSNotificationCenter开始显示服务器。


reveal_stop – This alias posts a notification via NSNotificationCenter to stop the Reveal server.

reveal_stop–别名张贴通知通过NSNotificationCenter停止显示服务器。

上面的是百度翻译,也许翻译不准确,理解一下就好


1.要用Reveal连接真机调试,我们需要先把Reveal的动态链接库上传到真机上。由于iOS设备有沙盒存在,所以我们只能将Reveal的动态链接库添加到工程中。

2.点击Reveal菜单栏的”Help”->”Show Reveal Library in Finder”选项(如下图所示),可以在Finder中显示出Reveal的动态链接库:libReveal.dylib


3.我们将libReveal.dylib文件拖动到目标Xcode工程中,Xcode默认情况下错误地将libReveal.dylib设置到了”Link Binary With Libraries”下,我们需要进行一下调整,将其中”Link Binary With Libraries”中删除,然后将其添加到“Copy Bundle Resources”下面。


4.之后用Reveal连接真机的方式和连接模拟器的方式类似,我们只需要把上一节提到的断点Action的内容从reveal_load_sim改成reveal_load_dev即可。

上述就是用Reveal连接真机的方式

简单明了

但是

我是这么做的 但是 一直显示一个错误(很多博客都是这么写的 但是我不知道为什么会这样)

error: 'reveal_load_dev' is not a valid command.

error: Unrecognized command 'reveal_load_dev'.

谁知道的请留言 介绍下










  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值