XCode iPhone OS部署目标工具 [英] XCode iPhone OS Deployment Target Tool

查看:97
本文介绍了XCode iPhone OS部署目标工具的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正试图找出要使用的 iPhone OS部署目标设置。我现在不想编写条件代码,所以我希望运行应用程序的最低版本能够正常运行。

I'm currently stuck trying to figure out what "iPhone OS Deployment Target" setting to use. I do not want to write conditional code right now, so I'd like the lowest version that runs my application fine.

起初,我认为它应该是2.0没有使用任何3.0功能,但是后来我意识到AVAudioRecorder是3.0 API。我不想手动检查文档中使用的每个功能。

At first I thought it would be 2.0 as I wasn't using any 3.0 features, but then i realized that AVAudioRecorder is a 3.0 API. I don't want to be manually checking EVERY function I use in the documentation.

是否有一个工具可以检查您在代码中调用的每个功能的操作系统可用性,从而确定部署目标应该是什么?该工具可能是一个很好的旧编译器,但iPhone SDK的最新版本不包含PRE-3.0 SDK。

Is there a tool that will check the OS availability of each functions you call in your code to figure out what the Deployment Target should be? That tool could be a good old compiler, but the latest version of the iPhone SDK does not come with the PRE-3.0 SDKs.

推荐答案

有一种方法可以检查所需的较旧的iOS。例如:我已经安装了sdk 4.1并测试了3.1目标的编译。
http:// 0xced .blogspot.com / 2010/07 / using-sdk-313-with-iphone-sdk-4.html

There is a way for checking desired older iOS. For example: I have installed the sdk 4.1 and tested the compiling for the 3.1 target. http://0xced.blogspot.com/2010/07/using-sdk-313-with-iphone-sdk-4.html

这篇关于XCode iPhone OS部署目标工具的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆