使用 xamarin.build.download 0.10.0 时 xamarin.forms ios 出现错误

问题描述

我正在使用 xamarin 表单来开发我的应用程序。当我从我的电脑通过配对运行我的 ios 代码到 Mac 机器时,我遇到以下错误

packages\Xamarin.Build.Download.0.10.0\build\Xamarin.Build.Download.targets(52,3): error : Object reference not set to an instance of an object.

谁能帮我解决这个问题。

解决方法

首先,清理 obj 和 bin 文件夹,因为它可以解决 Xamarin 的许多构建问题。

其次,从错误信息来看,it looks like the package you referenced causes the problem。使软件包保持最新状态并避免使用预发布版本。

第三,苹果证书好像也有这个问题,因为有人遇到过同样的问题。您可以参考this页面了解更多详情。