【问题标题】:The selected ios device is not supported for creating an archive不支持所选 ios 设备创建存档
【发布时间】:2021-10-25 22:24:26
【问题描述】:

我正在尝试将新的 MacBook 设置为 xamarin 项目的远程构建服务器。它在我的办公室里,我从家里用 Windows 10 的 rdp 连接那里。

在 MacBook 上:安装了 Xcode、Apple 开发者工具、Transporter。在 windows 上:连接到 mac,在 Visual Studio 中输入 AppleID,启用自动配置。 然后我在“AppStore”配置中构建我的 Xamarin.Forms ios 项目,这没关系。 然后我在该项目上单击“存档”并从 Visual Studio 存档管理器收到错误消息:

Selected device doesn't support archiving.
The selected ios device is not supported for creating an archive.
Please select a remote device from the drop-down menu before archiving.

我是否必须拥有 iPhone 才能构建我的应用程序?在哪里 - 在 MacBook 位置还是在家里?

在 Xcode 中可以归档新的默认项目(活动方案设置为“任何 iOS 设备 (arm64)”)。错误出现在 Visual Studio 中。

Visual Studio 2019 - (16.11.2) XCode 12.5.1

【问题讨论】:

    标签: xcode visual-studio xamarin xamarin.ios


    【解决方案1】:

    有一个新版本可以解决这个问题

    【讨论】:

      【解决方案2】:

      似乎remote device 选项没有显示在 VS 16.11 的下拉菜单中。

      查看类似案例:here 和 here。

      尝试将 Visual Studio 降级到 16.10.x 以查看问题是否仍然存在。

      您可以从link 下载旧版本。

      【讨论】:

        【解决方案3】:

        您不需要物理设备来存档。只需单击屏幕左上角的 栏,然后选择Any iOS Device 选项。在旧版本的 Xcode 上,我认为它被称为 Generic iOS Device。之后,再次点击Product -> Archive。

        【讨论】:

        • 谢谢,我检查了你写的内容。一切都在 xcode 中工作。但错误在视觉工作室。我清理了解决方案,将 Visual Studio 更新到 16.11.2 - 没有任何改变。我现在将更新问题。
        【解决方案4】:

        看起来微软终于在 16.11.3 中发布了一个修复:发布说明在这里: https://docs.microsoft.com/en-us/visualstudio/releases/2019/release-notes#16.11.3

        【讨论】:

          猜你喜欢
          • 1970-01-01
          • 2019-11-21
          • 1970-01-01
          • 1970-01-01
          • 2021-01-20
          • 2018-02-27
          • 2019-05-17
          • 2018-12-15
          • 2013-12-08
          相关资源
          最近更新 更多