Xamarin Forms-IOS最低支持版本 [英] Xamarin Forms - IOS minimum supported version

查看:224
本文介绍了Xamarin Forms-IOS最低支持版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

升级到最新的XCode和Xamarin之后,在Visual Studio中进行构建时,我不能再定位11岁以下的iOS设备了.

解决方案

如果要针对iOS 10框架进行构建,则需要通过将Xamarin的Apple SDK设置为指向Xcode 8的副本来使用Xcode 8./p>

现在,通过Info.plist中的Deployment Target,您可以控制希望应用运行的最低iOS版本.

部署目标"设置用于选择将在其上运行应用程序的操作系统的最低要求版本.这是在项目的Info.plist文件中设置的.您应该选择具有运行应用程序所需的所有API的最低版本.

对于基于表单的Xamarin.iOS,您不想设置最小值.不到iOS 8

Xamarin.Forms应用程序可以为以下操作系统编写:

  • iOS 8或更高版本
  • Android 4.0.3(API 15)或更高版本(更多详细信息)
  • Windows 10通用Windows平台(更多详细信息)
  • Windows 8.1/Windows Phone 8.1 WinRT(更多详细信息)
  • Windows Phone 8 Silverlight(已弃用)

After upgrading to latest XCode and Xamarin, when building in Visual Studio, I can no longer target any iOS devices older than 11. What happened?

解决方案

If you want to build against iOS 10 frameworks, you would need to use Xcode 8 by setting the Xamarin's Apple SDK to point to a copy of Xcode 8.

Now via the Deployment Target within the Info.plist you can control what is the minimum iOS version that you want your app to run against.

The Deployment Target setting is used to select the minimum required version of the operating system on which your application will run. This is set in your Project's Info.plist file. You should pick the minimum version that has all the APIs that you need to run your application.

For a Forms-based Xamarin.iOS you do not want to set the min. to less then iOS 8

Xamarin.Forms applications can be written for the following operating systems:

  • iOS 8 or higher
  • Android 4.0.3 (API 15) or higher (more details)
  • Windows 10 Universal Windows Platform (more details)
  • Windows 8.1 / Windows Phone 8.1 WinRT (more details)
  • Windows Phone 8 Silverlight (DEPRECATED)

这篇关于Xamarin Forms-IOS最低支持版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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