Reputation: 528
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:
Windows 10
OS X 10.11.3 El Capitan.
Are there any work arounds for this?
Upvotes: 6
Views: 1849
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
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
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
Reputation: 455
As suggested on the forum linked above, I found that disconnecting the Mac build agent and reconnecting fixed this issue.
Upvotes: 2
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