Bug 12260 - When I start debugging, iPhone Simulator automatically switches from 6.1 to 5.1
Summary: When I start debugging, iPhone Simulator automatically switches from 6.1 to 5.1
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Debugger ()
Version: 4.0.6
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: master
Assignee: Jeffrey Stedfast
URL:
Depends on:
Blocks:
 
Reported: 2013-05-15 23:31 UTC by Jonathan Nesbitt
Modified: 2013-08-05 12:44 UTC (History)
2 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 Jonathan Nesbitt 2013-05-15 23:31:53 UTC
Hello-

I just recently installed iPhone Simulators 5.1 and 6.0 using Xcode. Since then, my project now defaults to iPhone Simulator 5.1 every time I open it in Xamarin Studio. That is a problem. Next, I change it to iPhone Simulator 6.1. When I start debugging, it automatically switches and launches into iPhone Simulator 5.1. I then have to stop debugging, change it back to 6.1, then relaunch. That is the main problem, and the reason I filed this bug report.

Here are a couple of other problems that I will probably add as separate bug reports:

- My app crashes immediately upon launching into iPhone Simulator 5.1 - I can't even catch a breakpoint in the first line of Main ()

- I cannot set breakpoints in the gutter after launching for the first time (it forces a launch into iPhone Simulator 5.1 as I mentioned above). Also, I cannot remove existing breakpoints. At this point I usually restart Xamarin Studio.

These are problems that I can get around, but I find myself having to relaunch Xamarin Studio several times during a dev session.

Besides this, Xamarin Studio is good stuff. I love that I can automatically upload dSYMs when publishing to TestFlight.

Thank you.

-Jonathan
Comment 1 Jonathan Nesbitt 2013-05-27 13:03:45 UTC
UPDATE: When I launch into the simulator, Xamarin Studio does not automatically switch from iOS 6.1 to 5.1 anymore. However, it will sometimes randomly automatically switch from 6.1 to 5.1 during development. If I don't catch this, it launches using 5.1, immediately crashes, and then breakpoints stop working.

This particular project made the transition from MonoDevelop to Xamarin Studio. I'm not sure if there is any weirdness happening because of that. The problem is very frustrating.
Comment 2 Jeffrey Stedfast 2013-05-27 16:34:56 UTC
Can you get a screencast of this happening or try to narrow down the exact steps to cause this?
Comment 3 Peter 2013-07-15 16:46:59 UTC
I have a similar issue, where is it defaulting to iPhone 4.3. It will switch before my eyes as the app is loading. Then when I stop the app I need to switch it back to the version I wanted to target. This happens every time. 
Also, if I try to target iPhone 6.1, I encounter a null reference exception on System.TimeZoneInfo.GetSystemTimeZones().
Comment 4 Jeffrey Stedfast 2013-08-05 12:44:38 UTC
This should already be fixed