【问题标题】:'rake device' won't work“耙子设备”不起作用
【发布时间】:2016-10-08 09:48:25
【问题描述】:

这是来自终端的错误消息:

ERROR:
"Make sure RubyMotion is using a valid (non-expired) provisioning profile
and that no other process (iTunes, Xcode) is connected to your iOS device
at the same time (even through Wi-Fi).
Error when connecting to device: code -402653052
Make sure RubyMotion is using a valid (non-expired) provisioning profile
and that no other process (iTunes, Xcode) is connected to your iOS device
at the same time (even through Wi-Fi)."
Well, neither iTunes nor Xcode was in action nor connected and I had not made any change in the provisioning profile.

当我使用motion device-console 时,错误类似:

Error when pairing device: code -402653172
Make sure RubyMotion is using a valid (non-expired) provisioning profile
and that no other process (iTunes, Xcode) is connected to your iOS device
at the same time (even through Wi-Fi).

我已经多次重新创建了我的配置开发证书(和其他证书),但没有任何改变。

我非常希望有人可以提供帮助。

非常感谢! 丹尼尔

【问题讨论】:

    标签: ios rubymotion


    【解决方案1】:

    最后,我开始确保在连接设备时遵循此过程,并且几乎再也看不到问题了。

    1. 关闭设备上的 wifi
    2. 插入设备
    3. 要么让同步完成,要么终止同步,然后断开设备与 iTunes 的连接
    4. 退出 iTunes(还有 Xcode。永远不要运行)

    然后您可以继续整个重新创建配置文件:

    rake 设备 recreate_profile=1

    此时,它应该设置您的设备,然后您就可以开始了。如果您再次看到问题,您应该按照上面的这 4 个步骤进行操作,一切都会好起来的。

    【讨论】:

    • 感谢 wndxiori - 不幸的是它没有工作,仍然是同样的问题。
    • @danielo007 我建议你向 Hipbyte 提交一个错误。如果您使用的是“免费”版本,并且无法获得官方错误支持,那么我会尝试在 community.rubymotion.com 上发帖,因为 Hipbyte 开发人员阅读了这些内容。
    • 谢谢 - 我会这样做的。但是,在我只使用主要程序从头开始重新安装 os x 之前,我可以排除原因在那里的可能性。
    【解决方案2】:

    您似乎没有为您的应用创建和使用正确的配置文件。

    打开Xcode并创建一个iOS项目,进入项目的TARGETS > General设置页面,将Identify部分的属性值设置为与Rakefile中的app属性完全相同,选择合适的Team并勾选@987654323 @在“签名”部分。

    Xcode 将在~/Library/MobileDevice/Provisioning Profiles 目录中创建一个新的配置文件,在 Rakefile 中配置您的 ruby​​motion 应用以使用该配置文件。

    【讨论】:

    • 这是一个 RubyMotion 项目。不需要也不推荐使用 Xcode。
    • 这是我知道解决这个问题的唯一方法。你有更好的想法吗?
    • 我们使用运动配置 gem (github.com/HipByte/motion-provisioning) 进行简单的配置和命令行配置。
    猜你喜欢
    • 1970-01-01
    • 2011-11-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-10-21
    • 2012-08-22
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多