xcode iPhone 应用程序无法在旧设备(3G、3GS 等)上运行
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/6355890/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
iPhone app does not run on old device (3G, 3GS, ...)
提问by Chinthaka
Possible Duplicate:
Is it possible to target older iOS versions when using Xcode 4.2 and iOS 5 SDK?
I have developed an app which works on iPhone 4 (iOS 4.3 & 5) (which used during developing). Now I have tried to test on 3GS (iOS 4.3.3) and 3G(iOS 4.2). But app does not load into these devices. I can see following messages on consol when try to deploy to device.
我开发了一个适用于 iPhone 4 (iOS 4.3 & 5)(在开发过程中使用)的应用程序。现在我尝试在 3GS (iOS 4.3.3) 和 3G(iOS 4.2) 上进行测试。但是应用程序不会加载到这些设备中。尝试部署到设备时,我可以在控制台上看到以下消息。
Sat Jan 1 17:27:38 unknown lockdownd[16] <Error>: 2ff68000 handle_connection:
Could not receive USB message #6 from Xcode. Killing connection
Sat Jan 1 17:27:38 unknown com.apple.mobile.lockdown[16] <Notice>: Could not
receive size of message
I have tested on Xcode 4.0.2 as well as 4.2 beta. Restarted devices and MAC but still same. Can anybody know about this issue? Thanks
我已经在 Xcode 4.0.2 和 4.2 beta 上进行了测试。重新启动设备和 MAC 但仍然相同。有人可以知道这个问题吗?谢谢
回答by Mihai Timar
This can come for various reasons. Until now this is are the cases pople have encountered:
这可能出于各种原因。到目前为止,这是 pople 遇到的情况:
- bad cable -> try another one, or hold it really still when programming
- unsuported features mentioned in info.plist -> check plist
- unsuported architecture (by default Xcode4.2 uses standard arch= armv7 ) -> add armv6
- 电缆坏了 -> 尝试另一个,或者在编程时保持不动
- info.plist 中提到的不受支持的功能 -> 检查 plist
- 不支持的架构(默认情况下 Xcode4.2 使用标准 arch= armv7 )-> 添加 armv6
回答by Albrecht
Check your cable or your device dock. The problem in your console says your material connection is not healthy. Can you perform an itunes synchronization ?
检查您的电缆或设备底座。控制台中的问题表明您的物质连接不健康。你能执行 iTunes 同步吗?
回答by Prabh
Check the frameworks used by you... mostlt it happen that a some of frameworks doesn't work for old devices so they should not be of REQUIREDtype but of OPTIONAL. Hope it works for you.
检查您使用的框架......大多数情况下,某些框架不适用于旧设备,因此它们不应该是REQUIRED类型,而是OPTIONAL。希望对你有效。