首页 > 解决方案 > Xamarin.IOs 错误:本地应用程序和远程构建之间的不一致

问题描述

我有一个 Xamarin.IOs 项目,我在 Visual Studio 2017 for Windows 中编写代码,并在通过 Visual Studio 的Pair to Mac工具连接到Mac Build Host的真实设备上进行调试。

但是当我尝试运行我的 Xamarin.IOs 应用程序时出现此错误,

An inconsistency between the local app and the remote build has been detected for <App Name>. Please rebuild the application and try again. Check the logs for more details

这些都没有解决问题,

标签: visual-studioxamarinxamarin.ios

解决方案


发生此错误时,您只需断开Mac Build Host的连接,然后重新连接到该Mac Build Host。然后尝试在设备上运行应用程序,它会工作!

图片指南

重新连接到 Mac Build Host

  • A:打开Pair to Mac窗口以连接到Mac Build Host
  • B:连接的Mac Build Host
  • C:右键单击并断开此Mac Build Host,然后再次连接到它

现在,如果您运行应用程序,它将毫无问题地部署到设备上。

注意:连接到 Mac 教程 https://docs.microsoft.com/en-us/xamarin/ios/get-started/installation/windows/connecting-to-mac/


推荐阅读