简体   繁体   English

iPhone应用程序在部署目标为5.0时在iOS 4.3上运行,而在部署目标为4.3的情况下不在ios 5.1上运行

[英]iPhone app runs on iOS 4.3 when deployment target is 5.0 and does not run on ios 5.1 when deployment target is 4.3

My iPhone app runs on iOS 4.3 ( iPhone 3GS ) when deployment target is 5.0 and does not run on iOS 5.1 ( iPod 4 ) when the deployment target is 4.3 . 当部署目标为5.0时,我的iPhone应用程序可在iOS 4.3iPhone 3GS )上运行,而当部署目标为4.3时,则无法在iOS 5.1iPod 4 )上运行。

I'm confused why this is happening and I want to make sure I set the right deployment target. 我很困惑为什么会这样,我想确保设置正确的部署目标。

I want my app to be compatible with the iPhone 3GS and better phones. 我希望我的应用程序与iPhone 3GS和更好的手机兼容。

I have always been testing my app using the iOS 5.0 deployment target and it has always worked fine on the devices I have tested it on, however I read that it is necessary to set the deployment target as the lowest compatible iOS version, but doing so seems to do the opposite of what I would expect to happen. 我一直在使用iOS 5.0部署目标来测试我的应用程序,并且在我测试过的设备上始终可以正常运行,但是我读到有必要将部署目标设置为最低兼容的iOS版本,但是这样做似乎与我期望发生的事情相反。

I am using cocos2d for my app if that makes any difference. 如果有任何区别,我正在为我的应用程序使用cocos2d

Your deployment target should be set to the lowest version of iOS you want to support, in your case 4.3. 在您的情况下,您的部署目标应设置为要支持的最低iOS版本。 But your Base SDK should be set to Latest iOS 但您的基本SDK应该设置为最新的iOS 在此处输入图片说明

This is more of an architecture issue it seems. 看来,这更多是架构问题。 Try adding armv6 architecture in addition to armv7 and armv7s. 尝试除armv7和armv7s之外添加armv6体系结构。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM