首页 文章

错误:由于连接的Mac与本地应用程序之间存在不一致,因此需要重建应用程序ApplicationName

提问于
浏览
6

在尝试构建我的Xamarin应用程序的iOS版本时,我收到以下错误:

The application ApplicationName needs to be rebuilt due to an inconsistency between 
the connected Mac and the local app. Please rebuild the application and try
again.

我使用以下软件:

  • Windows 10

  • Visual Studio 2015社区

  • Xamarin.iOS 9.4.2.24

  • Xamarin 4.0.1.145

  • OS X 10.11.3 El Capitan .

  • Xcode 7.2.1

  • Xamarin Studio 5.10.3

  • 单声道4.2.3

  • GTK 2.24.23

  • Xamarin.iOS 9.4.2.27

  • Xamarin.Android 6.0.2.1

这有什么工作吗?

5 回答

  • 2

    看起来你正在遇到以下错误之一:

    https://bugzilla.xamarin.com/show_bug.cgi?id=37937

    希望在第7周期修复这个问题 - workaround here

    https://bugzilla.xamarin.com/show_bug.cgi?id=37600

    这应该有希望在第6周期SR 2中修复 - workaround in this comment

  • 0

    https://forums.xamarin.com/discussion/56054/the-application-xxx-needs-to-be-rebuilt-due-to-an-inconsistency

    正如上面链接的论坛上所建议的,我发现断开Mac构建代理并重新连接修复了这个问题 .

  • 2

    对我来说,问题是我使用的是Resharper自己的“Build”功能 . 一旦我禁用Resharper Build,一切正常 .

  • 1

    当您更改构建代理并且本地缓存文件与从当前构建创建的文件之间存在冲突时,通常会发生这种情况 .

    删除在Mac上/ Users / / Library / Caches / Xamarin / mtbs / 创建的项目文件夹 . 清洁,然后重建 .

    您需要确保删除所有bin和obj文件夹内容 . 您可能必须手动完成 . 否则,问题将持续存在 .

  • -1

    当我将连接从一个mac切换到另一个时,我遇到了同样的错误尝试更改iOS Build Configuration - >“Debug”而不是“Active(Debug)”和Platform->“iPhoneSimulator”而不是“Active(iPhoneSimulator)”

相关问题