visual-studio - 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
这些都没有解决问题,
- 重建应用程序并再次运行
- 清理项目,构建它并再次运行
- 清理项目,删除 bin 和 obj 文件夹,构建并再次运行
解决方案
发生此错误时,您只需断开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/
推荐阅读
- c - GCC 中静态变量的符号是如何命名的?
- java - 如何为从 Firebase 获取的不同类型的文件附加图标到 ListView?
- ruby-on-rails - Rails 服务器拒绝在浏览器中连接
- javascript - 如何将多个参数传递给一个函数?
- python - 为什么 pip 显示未安装到当前 conda 环境的站点包中的包?
- android - 何时将 Firebase 聊天消息存储到 SQLite
- python - extracting attribute values of tag in Scrapy
- excel - 根据单元格值将一系列单元格向下复制指定次数
- css - 为什么输入字段会使用 font-style:italic 减小宽度?
- vhdl - 修改 verilog 或 vhdl RTL 文件后,vivado 模块设计器未更新模块设计中的 RTL 接口