6
votes

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?

5

5 Answers

2
votes

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

2
votes

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.

1
votes

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

0
votes

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.

-1
votes

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)"