【问题标题】:Xcode Build Succeeded but not run on iPhone [duplicate]Xcode Build成功但不在iPhone上运行[重复]
【发布时间】:2011-12-08 09:41:58
【问题描述】:

可能重复:
Is it possible to target older iOS versions when using Xcode 4.2 and iOS 5 SDK?

我有一个我不太明白的问题,直到昨天我还在使用 Xcode,一切都运行良好,但昨天我在 iOS 5 上安装了 Xcode 4.2,但现在当我尝试用我的 iPhone 运行时因为目标是成功构建应用程序,然后立即停止。没有错误,控制台日志中没有任何内容。该应用程序甚至不会复制到我的设备上。 Xcode 说:构建,运行,完成运行......全部在 2 秒内...... 在模拟器上一切正常,但在设备上没有任何反应。

我有 xCode 4.2 和 iOS 5,我有一个 iPhone 3G 和 io 4.2.1,在部署目标下,我像昨天一样选择 4.2。请帮帮我,我快疯了!

我在 Xcode 的管理器窗口上看到,日志给了我这个结果,我复制了一小部分:

Sat Oct 15 18:17:14 unknown lockdownd[18] <Error>: 2ff68000 handle_connection: Could not receive USB message #6 from Xcode. Killing connection
Sat Oct 15 18:17:14 unknown com.apple.mobile.lockdown[18] <Notice>: Could not receive size of message
Sat Oct 15 18:17:14 unknown com.apple.mobile.lockdown[18] <Notice>: Could not receive size of message
Sat Oct 15 18:17:14 unknown lockdownd[18] <Error>: 2ff68000 handle_connection: Could not receive USB message #6 from Xcode. Killing connection
Sat Oct 15 18:17:15 unknown com.apple.mobile.lockdown[18] <Notice>: Could not receive size of message
Sat Oct 15 18:17:15 unknown lockdownd[18] <Error>: 2ff68000 handle_connection: Could not receive USB message #6 from Xcode. Killing connection
Sat Oct 15 18:17:16 unknown lockdownd[18] <Error>: 2ff68000 handle_connection: Could not receive USB message #6 from Xcode. Killing connection
Sat Oct 15 18:17:16 unknown com.apple.mobile.lockdown[18] <Notice>: Could not receive size of message
Sat Oct 15 18:17:16 unknown com.apple.mobile.lockdown[18] <Notice>: Could not receive size of message
Sat Oct 15 18:17:16 unknown lockdownd[18] <Error>: 2ff68000 handle_connection: Could not receive USB message #6 from Xcode. Killing connection
Sat Oct 15 18:17:17 unknown lockdownd[18] <Error>: 2ff68000 handle_connection: Could not receive USB message #6 from Xcode. Killing connection
Sat Oct 15 18:17:17 unknown com.apple.mobile.lockdown[18] <Notice>: Could not receive size of message
Sat Oct 15 18:17:17 unknown lockdownd[18] <Error>: 2ff68000 handle_connection: Could not receive USB message #6 from Xcode. Killing connection
Sat Oct 15 18:17:17 unknown com.apple.mobile.lockdown[18] <Notice>: Could not receive size of message
Sat Oct 15 18:17:18 unknown lockdownd[18] <Error>: 2ff68000 handle_connection: Could not receive USB message #6 from Xcode. Killing connection
Sat Oct 15 18:17:18 unknown com.apple.mobile.lockdown[18] <Notice>: Could not receive size of message
Sat Oct 15 18:17:18 unknown com.apple.mobile.lockdown[18] <Notice>: Could not receive size of message
Sat Oct 15 18:17:18 unknown lockdownd[18] <Error>: 2ff68000 handle_connection: Could not receive USB message #6 from Xcode. Killing

有什么问题?

附:我尝试将架构放到 armv6 上并在设备上构建是问题所在?...但是它是如何改变的?...我从未更改过 Xcode 上的架构。

【问题讨论】:

    标签: iphone ios xcode


    【解决方案1】:

    你是对的 - 问题可能是 3G 运行 amrv6 而你只为 armv7 构建

    在您的构建设置中,您可以找到有效架构的设置。应该有一个名为 armv7 的条目

    只需在该设置中添加另一个条目 armv6。 这应该可以解决问题

    【讨论】:

    • mmorris 很好地回答了这个问题。 stackoverflow.com/questions/7760946/…
    • 我已经尝试了所有步骤,但对我没有用。但我自己终于找到了解决方案:在我的情况下,它就像一个魔术:转到产品>编辑方案>选择使用信息选项卡运行并取消选中调试可执行文件。魔术开始了!!再次运行项目。我希望它也适用于您的情况。谢谢大家...
    【解决方案2】:

    如果您使用的是 xcode 4.2 并希望将应用程序安装到设备上,请按照 HeikoG 告诉的步骤操作,但在执行此操作后它对我没有帮助。但最后我发现在info.plist中,他们在关键部分定义了“所需的设备功能”,所以只需删除它并安装应用程序。

    【讨论】:

      【解决方案3】:

      还有一个地方需要添加 armv6。它在“构建设置”下的“架构”类别下的“架构”标题下。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2016-10-29
        • 2015-12-25
        • 1970-01-01
        • 2021-09-26
        • 1970-01-01
        • 2016-11-07
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多