简体   繁体   English

xCode中的构建设置支持iOS 3.0-4.0和iPhone 3g-4

[英]Build settings in xCode that support iOS 3.0 - 4.0 and iPhone 3g - 4

I want to build an app that is compatible with iPod touches, iPhone 3g, iPhone 4, iOs3.0, etc... Everytime I build on a 3GS, I use these build settings Architectures: Standard (armv6 armv7) Build Active Architecture Only (Unchecked) Valid architectures (armv6 armv7) And I select armv7 as the active architecture before I build. 我想构建一个与iPod touch,iPhone 3g,iPhone 4,iOs3.0等兼容的应用程序。每当我在3GS上构建时,我都会使用以下构建设置架构:标准(armv6 armv7)仅构建活动架构(未选中)有效的体系结构(armv6 armv7)在构建之前,我选择armv7作为活动体系结构。

However for 3G, I check the build active architecture only box and build under armv6. 但是对于3G,我选中仅构建活动体系结构框并在armv6下构建。

When I submit to the app store, will it matter what my build settings are for the final build? 当我提交到App Store时,最终构建的构建设置是否重要? I noticed that the 3G settings work for the 3GS and 4, along with iOS 4.0. 我注意到3G设置适用于3GS和4,以及iOS 4.0。 Should I just build active architectures only and select armv6 for the final build before submission? 我应该只构建活动架构并在提交之前选择armv6进行最终构建吗?

Edit: Which architecture should I select when building for distribution. 编辑:构建用于分发时应选择哪种体系结构。 armv6 or armv7? armv6或armv7? Will armv7 still build on iPhone 3G when distributed on the App Store? 在App Store发行后,armv7仍会在iPhone 3G上构建吗?

You need to set the "iPhone OS Deployment Target" for your project. 您需要为项目设置“ iPhone OS部署目标”。 Go to Project -> Edit project settings. 转到项目->编辑项目设置。 Scroll to the "Deployment" section and change "iPhone OS Deployment Target" to iPhone OS 3.0 (or lower if you like). 滚动到“部署”部分,然后将“ iPhone OS部署目标”更改为iPhone OS 3.0(如果需要,可以将其更改为更低版本)。

It seems you need to read a bit about the Base SDK and Target SDK. 似乎您需要阅读一些有关Base SDK和Target SDK的信息。 It can be a bit confusion, your right. 您的权利可能会有些混乱。 There is a very nice article at: Developing iPhone Apps with iOS4 SDK, Deploying to 3.x Devices 有一篇非常不错的文章: 使用iOS4 SDK开发iPhone应用程序,部署到3.x设备

You should have no problem in making an app that runs on all the devices you want. 使应用程序在所需的所有设备上运行都应该没有问题。 I hope it helps. 希望对您有所帮助。

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

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