[英]Problems building Xamarin.iOS project with Visual Studio using Xamarin 3. Error 11 The maximum deployment target for iOS is 9.1
We use Xamarin on Windows with Visual Studio to build our app for iOS.我们在 Windows 上使用 Xamarin 和 Visual Studio 为 iOS 构建我们的应用程序。
We recently upgraded to Xamarin 4 and found we were not able to build.我们最近升级到 Xamarin 4,发现我们无法构建。 Various errors including builds hanging, Linked Away exceptions.
各种错误,包括构建挂起、Linked Away 异常。 After some effort we decided to revert to Xamarin 3 using the links on this page
经过一番努力,我们决定使用此页面上的链接恢复到 Xamarin 3
https://store.xamarin.com/account/my/subscription/downloads#xamarin3 Where it says "Looking for the version before Xamarin 4? Get the latest stable version of Xamarin 3". https://store.xamarin.com/account/my/subscription/downloads#xamarin3哪里写着“正在寻找 Xamarin 4 之前的版本?获取 Xamarin 3 的最新稳定版本”。
We now cannot build and get the following error:我们现在无法构建并收到以下错误:
**Error 178 The maximum deployment target for iOS is 9.1 (current deployment target is 9.2).
Please select an older deployment target in your project's Info.plist.**
In Visual Studio, this setting is selected in the project settings and the only value available is 9.2.在 Visual Studio 中,此设置在项目设置中被选中,唯一可用的值是 9.2。 If I try and update in the .csproj file xml, it gets overwritten.
如果我尝试更新 .csproj 文件 xml,它会被覆盖。
I have had a look at all the various versions of Xamarin for Visual Studio and for the Mac (in the show all versions on the above page) and cannot find versions that will allow us to build.我已经查看了用于 Visual Studio 和 Mac 的所有不同版本的 Xamarin(在上一页的显示所有版本中),但找不到允许我们构建的版本。 ie versions with the old build client with matching Xamarin.iOS versions.
即具有匹配 Xamarin.iOS 版本的旧构建客户端的版本。
Are there matching Xamarin.iOS releases still available for both Mac and windows that use Xamarin 3?是否有匹配的 Xamarin.iOS 版本仍然适用于使用 Xamarin 3 的 Mac 和 Windows?
Is there a way I am missing of forcing the SDK value to match the build server?我是否缺少强制 SDK 值与构建服务器匹配的方法?
For what it's worth the answer was in the error message (kind of).值得回答的是错误消息(有点)。
The necessary update to Info.plist was adding the following: Info.plist 的必要更新是添加以下内容:
<key>MinimumOSVersion</key>
<string>9.1</string>
This was only apparent after I had noticed that there was an editor called PListEditoryFactory, which gives a ui to edit Info.plist.这只是在我注意到有一个名为 PListEditoryFactory 的编辑器后才明显,它提供了一个用于编辑 Info.plist 的 ui。
The file didn't open in PListEditoryFactory by default, so it just looked like an xml file to me.默认情况下,该文件没有在 PListEditoryFactory 中打开,所以对我来说它看起来就像一个 xml 文件。
In the ui the field needed editing is called 'Deployment Target', needs to be 9.1.在 ui 中需要编辑的字段称为“部署目标”,需要为 9.1。
Another curveball was that the error message says that the 'current deployment target ' is 9.2, which was the value selected (and only option) in the iOS project settings TargetSDK dropdown.另一个曲线球是错误消息指出“当前部署目标”是 9.2,这是在 iOS 项目设置 TargetSDK 下拉列表中选择的值(也是唯一的选项)。
What this is for and how it is different to the Info.plist setting I dont know.这是什么以及它与我不知道的 Info.plist 设置有何不同。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.