要选择哪个iOS版本,为什么?
/#不选出此行以定义您项目的全球平台 平台:iOS,'9.0'9.0
对我不起作用。我更改为10.0,它起作用了。这实际上是什么意思?因此,如果设置为10.0,则适用于10.0或以上的任何东西? 如果我将其设置为最新版本的iOS 15.4.1怎么办?它会适合较低的东西吗?
/# Uncomment this line to define a global platform for your project
platform :ios, '9.0'
9.0 didn't work for me. I changed to 10.0 and it worked. What does this actually mean? So if it's set at 10.0, then it works for anything 10.0 or above?
What if I set it as the latest version of iOS 15.4.1? Will it work for anything lower?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这说明了您的应用程序支持的最低iOS版本是什么。
如果您将其制作15.4.1,则仅适用于至少已安装iOS 15.4.1的iOS设备。您会错过许多可能没有升级到特定版本的用户(有些可能具有iOS 14.xy等)。
如果您指定iOS 10.0,则您的应用程序将用于几乎每个iOS设备进行安装。
为什么您不能降低它?
在较低的版本中,可能无法在瓦特框架(或任何其他框架中)中的某些功能(或任何其他框架)可用,这将在编译应用程序时会导致故障。因此需要最小版。
This tells what is the minimum iOS version your app supports.
If you make it 15.4.1, your app will be available to only those iOS devices which has at least iOS 15.4.1 installed. You will miss out on lots of users who might not have upgraded to the particular version (some might be having iOS 14.x.y etc).
If you specify iOS 10.0, your app will be available to almost every iOS device for installation.
Why you can't lower it?
Some functionality in the flutter framework (or any other framework in general) might not be available in lower versions which will result in failure while compiling the app. Hence minimum version is required.
加上Rahul的答案:没有实用的方法可以在10.0以下测试您的应用程序,因此您不希望9.x甚至更老。有五年的设备无法运行13.0,但它们都可以升级到12.5。因此,如果您想支持iPhone 6(仍然是有用的设备),则支持ARM64和12.5。
所有较新的手机运行15.1。因此,如果您不想支持5年历史的设备,我会避免在iOS 13上运行额外的工作,并需要14.2(我的最后一个应用程序做到了,并且对较旧的系统没有解决方法)。
Adding to Rahul’s answer: There is no practical way to test your app below 10.0, so you don’t want 9.x or even older. There are five year old devices that don’t run 13.0, but they can all be upgraded to 12.5. So if you want to support an iPhone 6 (which is still a useful device), you support arm64 and 12.5.
All newer phones run 15.1. So if you don’t want to support 5 year old devices, I’d avoid extra work to run on iOS 13 and require say 14.2 (my last app did that and had no workaround for older systems anymore).