Xcode Build Succeeded但不能在iPhone上运行

时间:2011-10-15 16:13:47

标签: iphone ios xcode

  

可能重复:
  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秒内...... 在模拟器上一切正常,但在设备上没有任何事情发生。

我有iOS 5的xCode 4.2,我有iphone 4.2.1的iPhone 3G,在部署目标下,我选择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

有什么问题?

P.S。我试图将架构设置为armv6并在设备上构建问题是什么?...但它是如何改变的?...我从来没有改变Xcode上的架构。

3 个答案:

答案 0 :(得分:13)

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

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

只需将另一个条目armv6添加到该设置即可。 应该做的伎俩

答案 1 :(得分:8)

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

答案 2 :(得分:0)

还有另一个地方你需要添加armv6。它位于Build Settings下的Architectures类下的Architectures下。