Join GitHub today
[Xcode10]Two Simulators are launching while deploying an iOS App with Xcode10-beta3 #4421
Steps to Reproduce
App builds, deploys and launch on iPhoneX iOS 12.0
App builds, deploys and launch on iPhoneX iOS 12.0. But a second simulator also opens iPhone4S 9.3.5
I can confirm the above with a build from xcode10 c1ad3f7 and the following VS env:
=== Visual Studio Community 2017 for Mac ===
Version Preview - Internal Dogfood (7.4.3 build 8)
=== NuGet ===
=== .NET Core ===
=== Xamarin.Profiler ===
=== Xamarin.Android ===
Version: 18.104.22.168 (Visual Studio Community)
SDK Tools Version: 25.2.5
Java SDK: /usr
Android Designer EPL code available here:
=== Apple Developer Tools ===
Xcode 10.0 (14301.4)
=== Xamarin.Mac ===
Version: 22.214.171.124 (Visual Studio Community)
=== Xamarin.iOS ===
Version: 126.96.36.199 (Visual Studio Community)
=== Xamarin Inspector ===
=== Build Information ===
Release ID: 704030008
=== Operating System ===
Mac OS X 10.13.5
=== Enabled user installed addins ===
I have the same issue and filed
Video of the issue: https://www.dropbox.com/s/s1azhk66c4r6r7e/DualSim.mov?dl=0
changed the title from
[XI]Two Simulators are launching while deploying an iOS App with Xcode10-beta3
[Xcode10]Two Simulators are launching while deploying an iOS App with Xcode10-beta3
Jul 31, 2018
One simulator (the wrong one) launches before mlaunch is called (which can easily be demonstrated by adding a
Backported in xamarin/md-addins#3492.
Also it can happen on VSMac stable and when using stable Xcode if you installed a Xcode beta.
At this point you’d have the Simulator (beta) installed as well as the non beta Simulator application. The AppleScript we’re using to grab focus then calls “Simulator” but that can result in the beta simulator app being called and brought forward.
Therefore my fix, which removes that early call to the simulator app (and only brings to front the currently running simulator app) solves this.
Verified with VSFMac 188.8.131.52 and the issue is resolved.
It's still present in stable channel when using latest VS and XCode
Visual Studio Enterprise 2017 for Mac
Apple Developer Tools
With the environment you have, the double simulator issue should be fixed.
Could you upload a screencast while reproducing the issue so I can see what's happening?
Please note that you will still be able to have multiple simulators at the same time with that fix. The issue was that if you ran on a given simulator (iPhone X), closed the simulator app and launched an other simulator (iPhone Xs), because of the grab focus code in the IDE we'd grab focus on the simulator app too early preventing its reset, therefore showing you 2 simulator.
If you close the simulator app now, and launch on any simulator, with VSMac 7.6.9 (build 22) you should only have 1 simulator that opens. If the simulator app is still open we'll start additional simulators.
This is my scenario:
It launches two simulators A and then B. Is this behaviour that you’ve described or something new?