ios - 更新到 Xcode 11.3.1 后,在 Xamarin Forms iOS 项目中出现错误“无法解析 AuthenticationServices.IASAuthorizationControllerDelegate”
问题描述
我的 Xamarin Forms 应用程序(使用 Visual Studio 2017 在 Windows 10 上构建,连接到运行 Mojave 的远程 Mac)多年来一直在构建并发布到 Android 和 iOS 商店。
但是,在将我的远程 Mac 的 Xcode 安装更新到 11.3.1(以遵守 Apple 对应用程序发布的最新强制执行)后,我突然收到了神秘的构建错误:
Failed to resolve "AuthenticationServices.IASAuthorizationControllerDelegate" reference from "Xamarin.iOS, Version=0.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065"
我已经阅读过类似的问题,但它们与我的设置无关,在花了一整天的时间后我找不到解决方案 - 所以我很难过;不能再在iOS上构建了。有没有人可以解释这个错误?
解决方案
在与 Microsoft 和 Apple 支持人员进行了长时间对话后,需要多个步骤来解决此问题:
- 使用最新补丁(2020 年 6 月 2 日发布)将 Visual Studio 2017 升级到 Visual Studio 2019。
- 将远程构建服务器从 Mojave 升级到 Catalina。
- 将构建服务器上的 Xcode 升级到 11.5。
以下来自 Microsoft 支持的引用总结了我遇到的问题:“在 VS2017 或 VS2019 上,Xcode 11.4 不支持构建 Xamarin iOS 应用程序。您必须升级到 Xcode 11.5(以及 Catalina)才能获得无错误的体验VS2019。”
推荐阅读
- apache-spark - spark-salesforce 连接器中的空类型架构
- html - 如果我的 HTML 中的条件不起作用,我的 jinja
- python - 如何重写 XML
- python - Python:非常慢的嵌套 for 循环
- c# - 此代码运行 INSERT 命令,但表仍然为空
- android - 如何以编程方式关闭谷歌支付对话框
- reactjs - 将从本地 restify 服务器获取的对象添加到 state 中的对象中
- android - 仅在某些特定应用程序运行时出现截图问题
- javascript - 当宽度低于最小限制时限制电子应用程序调整大小
- javascript - .JOIN 按钮单击时显示的 JQuery 错误消息