Coding with Cookie
Coding with Cookie

Reputation: 528

Error: The application ApplicationName needs to be rebuilt due to an inconsistency between the connected Mac and the local app

When trying to build the iOS version of my Xamarin application I received the following error:

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.

I am using the following software:

  1. Windows 10

    • Visual studio 2015 Community
    • Xamarin.iOS 9.4.2.24
    • Xamarin 4.0.1.145
  2. OS X 10.11.3 El Capitan.

    • Xcode 7.2.1
    • Xamarin Studio 5.10.3
    • Mono 4.2.3
    • GTK+ 2.24.23
    • Xamarin.iOS 9.4.2.27
    • Xamarin.Android 6.0.2.1

Are there any work arounds for this?

Upvotes: 6

Views: 1849

Answers (5)

lyndon hughey
lyndon hughey

Reputation: 657

This often happens when you change build agents and there are conflicts between your local cache files and the ones created from your current build.

Delete the project folder created at /Users/{username}/Library/Caches/Xamarin/mtbs/{projectName} on your Mac. Clean, then rebuild.

You'll want to make sure all of the bin and obj folder contents are deleted. You may have to do it manually. Otherwise, the issue will persist.

Upvotes: 0

AJ Younes
AJ Younes

Reputation: 1

I had the same bug when I switched connections from one mac to another Try changing the iOS Build Configuration -> "Debug" instead of "Active(Debug)" and Platform-> "iPhoneSimulator" instead of "Active (iPhoneSimulator)"

Upvotes: -1

Adrian Grigore
Adrian Grigore

Reputation: 33318

For me the problem was that I was using Resharper's own "Build" feature. As soon as I disabled Resharper Build, everything worked fine.

Upvotes: 1

mbrookson
mbrookson

Reputation: 455

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

As suggested on the forum linked above, I found that disconnecting the Mac build agent and reconnecting fixed this issue.

Upvotes: 2

BytesGuy
BytesGuy

Reputation: 4127

It looks like you are hitting one of the following bugs:

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

This should hopefully be fixed in Cycle 7 - workaround here

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

And this should hopefully be fixed in Cycle 6 SR 2 - workaround in this comment

Upvotes: 2

Related Questions