Bug 39708 - [Log file cleanup] Unsolvable warning in the *Ide.log files: "There is a mismatch between the installed Xamarin.iOS ... and the local Xamarin.iOS"
Summary: [Log file cleanup] Unsolvable warning in the *Ide.log files: "There is a mism...
Status: RESOLVED FIXED
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: iOS ()
Version: 4.4.0 (15.1)
Hardware: PC Windows
: --- minor
Target Milestone: ---
Assignee: Bugzilla
URL:
: 39158 ()
Depends on:
Blocks:
 
Reported: 2016-03-17 03:09 UTC by Brendan Zagaeski (Xamarin Team, assistant)
Modified: 2017-04-10 12:20 UTC (History)
7 users (show)

Tags: papercut
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Brendan Zagaeski (Xamarin Team, assistant) 2016-03-17 03:09:02 UTC
[Log file cleanup] Unsolvable warning in the *Ide.log files: "There is a mismatch between the installed Xamarin.iOS ... and the local Xamarin.iOS"


This bug is closely related to Bug 36797. I am filing this new bug to track the possibility of removing the message completely, so that it no longer appears even in the log files.

To summarize again briefly, this warning will almost always appear in the logs files: XamarinVS releases rarely reference _exactly_ the same build of Xamarin.iOS that is released at the same time for Mac. So the warning is almost always _expected_, and in those cases there is no action the user can take to resolve the warning.




## Regression status: not a regression

This message dates back to XamarinVS 3.11 and earlier.




## Steps to replicate

1. Open a Xamarin.iOS project in Visual Studio.

2. Connect to the build host.




## Results

The `%LOCALAPPDATA%\Xamarin\Logs\[11|12|14].0\*Ide.log` file shows:

> Xamarin.VisualStudio.IOS.MacServer Warning: 0 : [2016-03-16
> 20:50:24.5718] There is a mismatch between the installed Xamarin.iOS
> (version 9.8.0.58) on the Mac XSU-39A.local (192.168.1.66) and the
> local Xamarin.iOS 9.8.0.6. While this may not be an issue, it might
> cause unexpected behaviors. When applying updates, make sure to keep
> both the Mac and Windows in sync.




## Possible improvements


In short, I think this warning can be removed:


- The troubleshooting guide [1] now explains how to check for matching versions. 

[1] https://developer.xamarin.com/guides/ios/getting_started/installation/windows/connecting-to-mac/troubleshooting/ 


- There is a separate "is not compatible" _error_ that appears if the 2 versions are really far apart. That error will guard against many of the incompatibility scenarios where a user updates to a new release on one machine but not the other.


- The SSH-based build host connection is somewhat less susceptible to incompatibility problems between different builds of the same minor revision (e.g., 9.8.0.58 vs. 9.8.0.6) compared to the old HTTPS-based "Xamarin.iOS Build Host.app" connection.




Thanks!
Comment 1 Brendan Zagaeski (Xamarin Team, assistant) 2016-03-17 05:45:57 UTC
*** Bug 39158 has been marked as a duplicate of this bug. ***
Comment 2 mag@xamarin.com 2016-12-22 18:37:50 UTC
This issue has been fixed and now the consistency error is show only when a real integrity issue between local and remote apps exists.
Comment 3 John Miller [MSFT] 2017-04-07 19:15:59 UTC
> This issue has been fixed and now the consistency error is show only when a real integrity issue between local and remote apps exists.

This bug report was requesting that the warning be removed entirely, and the description in Comment 0 is not related to consistency or integrity but instead the exact versions of the Xamarin.iOS SDK on the Mac  vs. included within the VS extensions.

I've reopened this bug because the warning still appears in the IDE logs. Here is an example using the latest 10.8.x versions on both Mac and Windows. 

> There is a mismatch between the installed Xamarin.iOS (version 10.8) on the Mac Johns-Work-MacBook-Pro.local. (192.168.0.3) and the local Xamarin.iOS (version 10.8.0.174). While this may not be an issue, it might cause unexpected behaviors. When applying updates, make sure to keep both the Mac and Windows in sync.

The Mac reports having XI 10.8.0.175 installed, which is the most up-to-date Stable version.

The Windows machine and XVS reports having 10.8.0.174 which is the most up-to-date Stable version. 

I believe this falls under the category mentioned by Brendan in the original post:

> To summarize again briefly, this warning will almost always appear in the logs files: XamarinVS releases rarely reference _exactly_ the same build of Xamarin.iOS that is released at the same time for Mac. So the warning is almost always _expected_, and in those cases there is no action the user can take to resolve the warning.

Because of the above being true, this warning should be considered for removal. There are already more helpful build guards in place when versions are "more" out of sync.
Comment 5 xamarin-release-manager 2017-04-10 12:20:33 UTC
Fixed in version 4.5.0.352 (master)

Author: Jon Douglas
Commit: 488843fee77ada1868d04334312e9ebdf64b554e (xamarin/XamarinVS)