简体   繁体   English

iOS兼容性

[英]iOS compatibility

I'm releasing an iPhone app and want it to have the largest possible audience. 我正在发布一款iPhone应用程序,并希望它拥有尽可能多的受众。 What version of iOS should I compile it with? 我应该用什么版本的iOS编译它?

The app doesn't use any new iOS 4 capabilities 该应用程序不使用任何新的iOS 4功能

You could set your "Base SDK" to the latest (iOS 4.2) and your "iOS Deployment Target" to iOS 3.0. 您可以将“Base SDK”设置为最新版本(iOS 4.2),将“iOS部署目标”设置为iOS 3.0。 Do make sure to check that you aren't using code that's not available on iOS 3.0. 请务必检查您是否使用了iOS 3.0上未提供的代码。

Personally, I think it'd be okay to just set it to 3.1.3... 就个人而言,我认为将它设置为3.1.3是可以的......

EDIT I haven't tried it yet but it looks like this would be a useful question to favorite.. finding unsupported apis with os version 编辑我还没有尝试过,但看起来这将是一个有用的问题,最喜欢.. 发现不支持的apis与os版本

Welcome to the jungle if you are really determined to make your app available for iOS as ancient as 3.0... 欢迎来到丛林,如果你真的决定让你的应用程序可用于iOS这个古老的3.0 ...

A few things that might be able to save your life: 一些可能挽救你生命的东西:

  1. Wrap up your code properly, check this post . 正确包装你的代码,查看这篇文章
  2. Go to iOS Dev Center and search the keyword API Diffs , read those documents and make sure you don't apply any iOS 4 APIs in your code. 转到iOS开发人员中心并搜索关键字API Diffs ,阅读这些文档并确保您的代码中不应用任何iOS 4 API。
  3. Be sure to test your app in real iOS 3.x devices, jailbreak ones preferred (since jailbreak is one of the major reasons for people still sticking to iOS 3.x). 一定要在真正的iOS 3.x设备上测试你的应用程序,越狱的首选(因为越狱是人们仍然坚持iOS 3.x的主要原因之一)。

And finally, remember to set the project's deployment target to 3.x. 最后,记住将项目的部署目标设置为3.x. Good luck. 祝好运。 :-) :-)

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

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