【问题标题】:Xamarin.IOs Error: Inconsistency between the local app and the remote buildXamarin.IOs 错误:本地应用程序和远程构建之间的不一致
【发布时间】:2018-05-15 08:40:31
【问题描述】:

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

但当我尝试运行 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

这些都没有解决问题,

  • 重新构建应用程序并再次运行
  • 清理项目,构建并再次运行
  • 清理项目,删除 bin 和 obj 文件夹,构建并再次运行

【问题讨论】:

  • 尝试重新启动您的 Mac。
  • 您无需重新启动 Mac。下面给出的答案只会解决你的问题。

标签: visual-studio xamarin xamarin.ios


【解决方案1】:

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

图片指南

  • 答:打开 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/

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-02-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-07-31
    • 2011-06-10
    相关资源
    最近更新 更多