如何为我的应用正确设置最低 iOS 版本?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/6341961/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-30 20:21:26  来源:igfitidea点击:

How to correctly set the minimum iOS version for my app?

iosios4ios-3.x

提问by simbesi.com

I am developed one application in ios 4.2. I try to test that application in iphone 3g. In that process error will occur like

我在 ios 4.2 中开发了一个应用程序。我尝试在 iphone 3g 中测试该应用程序。在那个过程中会发生错误

"The Info.plist for application at /Users/gvrao/Desktop/BabyCryApp/build/Debug-iphoneos/BabyCryApp.app specifies a minimum OS version of 4.2, which is too high to be installed on iphone 3g"

“位于 /Users/gvrao/Desktop/BabyCryApp/build/Debug-iphoneos/BabyCryApp.app 的应用程序的 Info.plist 指定最低操作系统版本为 4.2,该版本太高而无法安装在 iphone 3g 上”

And change the version in iphone development target to 3.1.3. But it was not working. Please tell me how to solve this problem.

并将iphone开发目标中的版本改为3.1.3。但它不起作用。请告诉我如何解决这个问题。

回答by Abizern

You need to set the Deployment target in the build settings to the minimum iOS version you require.

您需要在构建设置中将部署目标设置为您需要的最低 iOS 版本。

A general guideline is to set:

一般准则是设置:

  • Base SDK to latest
  • deployment target to the minimum version you support.
  • 基础 SDK 到最新
  • 部署目标到您支持的最低版本。

Also - check your Info.plist file for the MinimumOSVersionkey.

另外 - 检查您的 Info.plist 文件以获取MinimumOSVersion密钥。

回答by Andy

Do you get build errors when you try to build for version 3.1.3 in xcode.

当您尝试在 xcode 中为 3.1.3 版构建时,是否会遇到构建错误。

iOS4 SDK has a lot of features that possibly are not featured in older versions of the the firmware.

iOS4 SDK 有很多旧版本固件可能没有的功能。