首页 > 解决方案 > 更新到 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上构建了。有没有人可以解释这个错误?

标签: iosxamarinxamarin.formsvisual-studio-2017

解决方案


在与 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。”


推荐阅读