Bug 29215 - Updater allows Xamarin Studio to update to versions that are not supported by the current OS X version
Summary: Updater allows Xamarin Studio to update to versions that are not supported by...
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Updater ()
Version: 5.8
Hardware: PC Mac OS
: Normal normal
Target Milestone: 5.9
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2015-04-17 18:19 UTC by Brendan Zagaeski (Xamarin Team, assistant)
Modified: 2016-02-08 08:18 UTC (History)
4 users (show)

Tags:
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 or GitHub 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) 2015-04-17 18:19:12 UTC
Updater allows Xamarin Studio to update to versions that are not supported by the current OS X version



## Steps to reproduce

1. Install Xamarin Studio 5.8.3 (and Mono 3.12.1.3) on OS X 10.8.5.

2. Open Xamarin Studio.

3. Choose "Xamarin Studio -> Check for Updates". (As of today, Xamarin Studio 5.9.0 is available on the Beta and Alpha channels, so either of those channels will work for this test.)

4. Allow the updater to download and install Xamarin Studio 5.9.0 or higher.



## Results

The update process completes and successfully installs Xamarin Studio 5.9.0. But this version is _not_ compatible with OS X 10.8.5. Attempting to launch this version of Xamarin Studio results in a crash.


### Message from the `.crash` report

> Application Specific Information:
> abort() called
> application requires at least Mac OS X version 10.9.0, but is being run on 10.8.5, and so is exiting.



## Possible improvements

Prevent the updater from installing versions of Xamarin Studio that will not run on the current version of OS X.
Comment 1 Brendan Zagaeski (Xamarin Team, assistant) 2015-04-17 18:21:17 UTC
Related forum post from a user:
http://forums.xamarin.com/discussion/comment/114925/#Comment_114925
Comment 2 Brendan Zagaeski (Xamarin Team, assistant) 2015-04-17 18:36:16 UTC
Note: launching the application via Finder produces a very similar error message. (In my original tests in comment 0 I was launching via Terminal.app.)

## Error dialog when launching Xamarin Studio 5.9.0 via Finder on OS X 10.8.5

> You can't use this version of the application "Xamarin Studio" with this
> version of OS X.
> 
> You have OS X 10.8.5. The application requires OS X 10.9 or later.
Comment 3 PJ 2015-04-23 19:01:33 UTC
Lluis, are you planning on attempting to make this change in the updater service for the C5 Stable release? I see that it's on the 5.9 milestone, but I'm not sure what the plan is.
Comment 4 PJ 2015-04-27 15:55:12 UTC
Lluis has a fix for this available on the test updater service, and initial results shows that it's working: http://screencast.com/t/wXuVOULtn

We are offered all of the 'normal' Beta bits except for Xamarin Studio 5.9. 

That being said, I'm not sure if we want to block all updates or just block the known-to-be-incompatible XS version. If we let people update everything besides XS, they get into an untested combination that may be even more frustrating.

I'm also wary of pushing any update to the updater service without more extensive testing.

For the record: 

## Test instructions:

1. Open Xamarin Studio with a special environment variable:

MONODEVELOP_UPDATER_URL=http://updater-stage.internalx.com/Service/Updates open "/Applications/Xamarin Studio.app/"

2. Check for updates as usual, from the Stable Cycle 4 Service Release 4 builds

Expected:

Mountain Lion - User is not offered the XS 5.9 update, but is offered all other updates.
Mavericks, Yosemite - User is offered all C5 updates, including XS 5.9.

##

I'm going to discuss this further with Brendan before we make a call on the change.