2011-10-15 37 views
10

可能重复:
Is it possible to target older iOS versions when using Xcode 4.2 and iOS 5 SDK?Xcode的构建成功,但在iPhone上无法运行

我有我真的不明白的问题,我用我的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 

问题是什么?

P.S.我试图把这个架构放在armv6上,并且在这个设备上构建是这个问题?但是它是如何改变的......我从来没有改变过Xcode上的架构。

回答

13

你是正确的 - 问题是很可能的是,3G运行的amrv6和你只是建立对ARMv7

在构建设置

你找到有效的架构设置。应该有一个名为armv7的条目

只需将其他条目armv6添加到该设置即可。 应该诀窍

+2

mmorris在回答这个问题时表现得非常好。 http://stackoverflow.com/questions/7760946/possible-to-target-older-ios-versions-when-using-xcode-4-2-and-ios-5-sdk –

+0

良好的链接,它帮助了我。 – justinkoh

+0

我尝试过所有步骤,但对我无用。但最终我自己找到了解决方案:在我的情况下,它像魔术一样工作:转到产品>编辑方案>选择使用信息选项卡运行并取消选中调试可执行文件。魔术开始了!再次运行项目。我希望它也适用于你的情况。谢谢所有... –

8

如果您使用的是xcode 4.2并且想要将该应用程序安装到设备上,请按照HeikoG所说的步骤进行操作,但是在执行此操作后它并没有帮助我。但最后我发现,在info.plist中,他们已经在关键部分定义了“必需的设备功能”,因此只需将其删除并安装该应用程序即可。

0

还有另一个地方,你将不得不添加armv6。它位于构建设置下的类别体系结构下的标题下。

相关问题