Xcode:iOS向后兼容性与部署目标的兼容性 [英] Xcode: iOS backward and forward compatibility for Deployment Target

查看:131
本文介绍了Xcode:iOS向后兼容性与部署目标的兼容性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图了解兼容性的工作原理,但无法在那里找到完美的答案。许多答案令人困惑。



我想了解我是否开发了针对iOS 9的应用程序,它是否可以在iOS 11.2设备上运行(例如,向前兼容)



,如果我的目标是iOS 11.2,它是否将与iOS 9和10兼容(向后兼容)



我找到了这个



我的iPhone正在运行iOS11.3,而我的Xcode项目(目标-c)的目标是iOS 10,并且我正在使用Xcode 9.2开发

解决方案


  1. Apple仅支持前向兼容性。您可以在目标中指定应用的最低操作系统支持。所有高于最低目标版本的操作系统版本都将支持您的应用。您不能让您的应用支持的操作系统版本低于目标版本。

  2. 当您的Xcode与设备的操作系统版本不兼容时,会出现此找不到设备支持文件错误。在这种情况下,您可以下载这些映像并使Xcode与操作系统版本兼容。

  3. 何时下载映像? -无法将Xcode更新到最新版本时(例如:如果您使用的是Sierra,并且没有计划更新到High Sierra)。


I am trying to understand how the compatibility does work and could not get the perfect answer out there. Many answers are confusing.

I want to understand if I develop an app targeting iOS 9, does it work on iOS 11.2 devices for example (forward compatibility)

and if I target iOS 11.2, is it going to be compatible with iOS 9 and 10 as an example (backward compatibility)

I found this answer where he is suggesting to download the image file for an older versions. When shall I do that? What is the case that requires downloading the images to my project?

This issue is giving me the following error:

My iPhone is running iOS11.3 and my Xcode Project (Objective-c) is targeting iOS 10 and I am developing using Xcode 9.2

解决方案

  1. Apple only supports 'forward compatibility'. You can specify your App's min OS support in its target. All OS version higher than the min target version will support your app. You can't make your app to support OS versions less than the target version.
  2. This "Could not locate device support files" error occurs when your Xcode is not compatible with the OS version of the device. In such scenarios, you can download those image and make your Xcode compatible with the OS version.
  3. "When to download the images??" - When you can't update your Xcode to its newest version( for eg: if you are using Sierra and no plans to update to High Sierra).

这篇关于Xcode:iOS向后兼容性与部署目标的兼容性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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