Xcode Build Succeeded但不能在iPhone上运行

Pie*_*ero 10 iphone xcode ios

可能重复:
使用Xcode 4.2和iOS 5 SDK时是否可以定位较旧的iOS版本?

我有一个问题,我真的不明白,我使用Xcode直到昨天,所有工作完美,但昨天我安装Xcode 4.2与iOS 5,但现在当我尝试运行我的iPhone设置为目标是成功构建应用程序,然后立即停止.没有错误,控制台日志中没有任何内容.该应用程序甚至没有复制到我的设备.Xcode说:构建,运行,完成运行....所有都在2秒内......在模拟器上一切正常,但在设备上没有任何事情发生.

我有iOS 5的xCode 4.2,我有一个带有io 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
Run Code Online (Sandbox Code Playgroud)

问题是什么?

PS我试图将架构设置为armv6并在设备上构建问题是什么?...但它是如何改变的?...我从未改变Xcode上的架构.

Hei*_*koG 13

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

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

只需在该设置中添加另一个条目armv6即可.这应该够了吧

  • mmorris在回答这个问题时非常清楚.http://stackoverflow.com/questions/7760946/possible-to-target-older-ios-versions-when-using-xcode-4-2-and-ios-5-sdk (2认同)

Kha*_*aus 8

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