简体   繁体   English

Xcode:Universal \\ iOS4应用程序的体系结构设置

[英]Xcode: Architectures settings for a universal\iOS4 app

I was wondering what my project settings should be in case I have a universal app that I am now updating to 4.0. 我想知道如果我有一个通用应用程序,现在要更新到4.0,我的项目设置应该是什么。

The Base SDK is iPhone Device 4.0 iPhone OS Deployment Target is iPhone OS 3.0 基本SDK是iPhone设备4.0 iPhone OS部署目标是iPhone OS 3.0

What should I enter in the Architectures, Build Active Architecture Only checkbox and the Valis Architectures for the different configurations (debug, release)? 对于不同的配置(调试,发行版),我应该在“体系结构”,“仅构建活动体系结构”复选框和Valis体系结构中输入什么?

Also, since some of my apps are not universal but will support 4.0 as base and 3.0 as deployment, will it make any difference is the architectures settings? 另外,由于我的某些应用不是通用的,但将支持4.0作为基础,而3.0支持作为部署,那么体系结构设置会有所不同吗?

Thanks 谢谢

Roi 投资回报率

Base SDK should be set to the most recent version of the SDK (ie: 4.2) this is what you build against and ensures that your app works properly on new OS's. 基本SDK应该设置为SDK的最新版本(即4.2),这是您要构建的版本,并确保您的应用在新OS上正常运行。 Xcode now has a 'Latest iOS' selection which I recommend. Xcode现在推荐一个“最新的iOS”选项。

Deployment Target is the minimum version you want your app to be able to be installed on. 部署目标是您希望能够安装您的应用程序的最低版本。 This is mostly dictated by the features you want to use. 这主要取决于您要使用的功能。 If you want features introduced in iOS 4, you need to set the deployment target to 4.0. 如果要在iOS 4中引入功能,则需要将部署目标设置为4.0。

also, be careful that these are set identically for all configurations and don't vary between development and release. 另外,请注意,对于所有配置,它们的设置都相同,并且在开发和发行之间不会有所不同。

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

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