Bug 59611 - iOS 11 Simulator doesn't rotate to landscape mode
Summary: iOS 11 Simulator doesn't rotate to landscape mode
Alias: None
Product: Windows iOS Simulator
Classification: Xamarin
Component: Simulator ()
Version: unspecified
Hardware: PC Windows
: High critical
Target Milestone: 15.5
Assignee: Bugzilla
Depends on:
Reported: 2017-09-20 15:58 UTC by Don Miller
Modified: 2017-12-11 15:52 UTC (History)
10 users (show)

Tags: 15.3I
Is this bug a regression?: Yes
Last known good build:

Logs (1.51 KB, text/plain)
2017-11-07 13:10 UTC, Swati Gangrade
IDE Logs (3.48 KB, application/x-zip-compressed)
2017-11-07 13:14 UTC, Swati Gangrade

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:

Description Don Miller 2017-09-20 15:58:55 UTC
1. Run project in iOS 11 simulator.  I used iPad Pro (10.5-inch)
2. Press rotate left or rotate right button at top

The screen and app should rotate.

The screen rotates but all the apps do not.  Even the base iOS screens don't rotate.

This was working before iOS11 update to VS and Xcode 9 update.
Comment 1 Paul DiPietro [MSFT] 2017-09-20 16:15:51 UTC
Looks as if this appears to specifically be a remote simulator issue; running the sim on a Mac rotates as usual.
Comment 2 Don Miller 2017-09-20 16:35:13 UTC
Thanks Paul.  I agree with your assessment.  It is a remote simulator issue.  Is there a temporary workaround to get remote simulator working?
Comment 3 Alan McGovern 2017-09-20 17:10:54 UTC
Paul, can you check if it's specific to Xcode 9? If so the only workaround would be to downgrade to using Xcode 8.3.x.
Comment 4 Don Miller 2017-10-26 17:49:46 UTC
Any updates on when this will be fixed.  I see the latest iOS and VisualStudio 2017 updates didn't fix it.
Comment 5 Jim Horvath 2017-11-02 19:33:01 UTC
Glad I found this.  Me too.
Comment 6 Don Miller 2017-11-02 20:55:15 UTC
The workaround is to first show the simulator on the iOS agent you are using.  Then rotate it on the iOS machine using the Simulator Hardware menu Rotate Left/Right item.  Then rotate it on the Windows PC Simulator.
Comment 7 Marcin Wieczorek 2017-11-03 21:13:43 UTC
@Don - thanks for the partial workaround. Unfortunately it doesn't help much when working on app behavior on device orientation change. In such case right now it makes more sense to switch to Mac (which I am trying to avoid usually as I really hate "VS for Mac"). Let's hope that this issue will be fixed soon.
Comment 8 Don Miller 2017-11-03 21:28:38 UTC
@Marcin - Agreed.  I'm waiting for this regression to be fixed as well.  Also shopping for MacBook Pro.  Ready to give up on using VS on windows for Xamarin.
Comment 9 Alan McGovern 2017-11-06 17:22:42 UTC
I believe this is an issue with Xcode 9 and newer. If you are stuck, setting Visual Studio to use an Xcode 8 app bundle should unblock you, but that could cause issues if you actually rely on iOS 11 features. We are prioritising a fix for this and will hopefully have one shortly.
Comment 10 Alan McGovern 2017-11-06 21:49:53 UTC
Fixed with https://github.com/xamarin/ios-sim-sharp/commit/8df6611255e48a2b8152038a4167db3e7eda23e4 and backported to d15-5 and d15-4.
Comment 11 Swati Gangrade 2017-11-07 09:52:44 UTC
Tested Build- 
- Microsoft Visual Studio Enterprise 2017 d15rel
Version 15.5.0 Preview 3.0 [27029.9000.merge]
- Microsoft .NET Framework Version 4.7.02046
- Xamarin (f0e7af2)
- Xamarin.Android SDK (HEAD/0baf02a75)
- Xamarin.iOS and Xamarin.Mac SDK (25c6ba1)

Detailed Build Info - https://gist.github.com/sarangk-globallogic/76febe1450d5a8f33d111eaca337cf68

Actual Result- iOS 11 Simulator is not rotate to landscape mode

The screen and app should rotate.Even the base iOS screens don't rotate.

Please refer the screencast 

Scrrencast- https://www.screencast.com/t/KtMys9Hn

So could you  please confirm the expected behavior
Comment 12 Alan McGovern 2017-11-07 10:26:15 UTC
Which simulator build did you use?
Comment 13 Alan McGovern 2017-11-07 10:26:35 UTC
Can you attach the logs too?
Comment 14 Swati Gangrade 2017-11-07 13:10:20 UTC
Created attachment 25580 [details]

Please find the attached logs
Comment 15 Swati Gangrade 2017-11-07 13:14:12 UTC
Created attachment 25581 [details]
IDE Logs
Comment 16 Alan McGovern 2017-11-07 14:47:57 UTC
The builds you're using don't include the fix in comment 10.
Comment 17 Umesh Kamble 2017-11-08 12:40:16 UTC
iOS 11 Simulator doesn't rotate to landscape mode is not reproduced hence mark as verified   

Tested Build:
Microsoft Visual Studio Enterprise 2017 d15rel
Version 15.5.0 Preview 4.0 [27107.1.d15rel]
Microsoft .NET Framework
Version 4.7.02046
Installed Version: Enterprise
Xamarin (ac2f35928)
Xamarin Designer   4.8.143 (14e3edba0)
Xamarin.Android SDK (HEAD/0baf02a75)
Xamarin.iOS and Xamarin.Mac SDK (f288a51)

Actual Result- iOS 11 Simulator rotates to landscape mode.

Detailed info :

Screencast link :

As issue is not reproducible marking as "verified".
Comment 18 Don Miller 2017-11-09 15:52:33 UTC
Was the fix released? I will test latest VS2017 release and let you know if it is fixed.
Comment 19 Marcin Wieczorek 2017-11-09 15:59:40 UTC
Current stable Visual Studio 2017 is in version 15.4.3 and they fixed issue in 15.5.0 (right now in "preview") so we need to wait a little bit. But anyway looks good for me :)
Comment 20 Don Miller 2017-11-09 18:23:09 UTC
When will 15.5.0 be available?
Comment 21 Alan McGovern 2017-11-09 18:57:52 UTC
A preview build of 15.5 will be shipping relatively soon and the simulator build bundled with that will have the fix.

I do not have a firm date for when 15.5 will hit stable. I would expect it to be within the next couple of weeks.
Comment 22 Don Miller 2017-12-11 15:52:36 UTC
It appears to be fixed in latest version of VS2017.  Thanks.