简体   繁体   English

使用 Xamarin 3 使用 Visual Studio 构建 Xamarin.iOS 项目时出现问题。错误 11 iOS 的最大部署目标是 9.1

[英]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.

相关问题 Visual Studio 2013 Premium中的Xamarin iOS项目 - Xamarin iOS project in Visual Studio 2013 Premium Xamarin iOS | 从Windows上的Visual Studio连接Xamarin Build主机时出错 - Xamarin iOS | Error Connecting Xamarin Build Host from Visual Studio on Windows Xamarin iOS:无法在Visual Studio 2013中渲染iOS Storyboard - Xamarin iOS: Cannot render iOS Storyboard in Visual Studio 2013 Visual Studio中的Xamarin iOS-调试语句记录两次 - Xamarin iOS in Visual Studio — debugging statements are logged twice Xamarin Visual Studio iOS便携式类库的重建过程 - Xamarin Visual Studio iOS Portable Class Library rebuild process 使用Xamarin的iOS AutoLayout在Visual Studio 2013中仅使用C#代码,没有XCode或Interface Builder - iOS AutoLayout with Xamarin using ONLY C# code in Visual Studio 2013, no XCode or Interface Builder 没有安装的配置文件与使用Visual Studio的Xamarin中安装的iOS代码签名密钥相匹配 - No installed provisioning profiles match the installed iOS code signing keys in Xamarin using Visual Studio xamarin.ios无法与vs2013一起编译 - xamarin.ios doesn't compile with vs2013 如何在Visual Studio 2013中使用SDK版本5.0部署Xamarin ios应用以使用旧主题(不是iOS 7主题) - How to deploy xamarin ios app with SDK Version 5.0 to use old theme (not iOS 7 Theme) in visual studio 2013 如何使用Xamarin for Visual Studio 2013为我的iOS应用程序构建IPA文件 - How do i build an IPA file for my iOS app with Xamarin for Visual Studio 2013
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM