question

BenFunk-6971 avatar image
3 Votes"
BenFunk-6971 asked BenFunk-6971 answered

Cannot run iOS 14.5 simulator from Windows

On two different PCs that could run the iOS simulator prior to updating to Xcode 12.5, I can no longer launch the simulator. Doesn't matter if Remoted Simulator is checked, it just can't launch it at all. After connecting to the Mac and building, it tries to launch the remoted simulator and I get this:

92193-image.png

That's...bad, right? So I go to my Mac and see if the simulator with that ID is there. It is, and I can launch it just fine. Even with the simulator with the same ID running on my Mac, which I can connect to just fine for builds, it will not launch. This happens on two different PCs, both running VS 2019 16.9.4. My Mac is fully updated with Big Sur 11.3, Xcode 12.5, and the fully updated Visual Studio of its own.

92150-image.png

And then the simulator running the device in question:

92212-image.png


dotnet-xamarinvs-general
image.png (11.4 KiB)
image.png (28.7 KiB)
image.png (617.5 KiB)
· 12
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Lastly; when deleting the folder C:\Users\<username>\AppData\Local\Xamarin\iOS\DeveloperDiskImages and hoping for recreation, it does re-create the diskImages however it stops at 14.3 and idle forever. Therefore those of you who needs to roll-back will need to go back to 14.3 I suspect.


92772-vsbug.jpg


1 Vote 1 ·
vsbug.jpg (331.2 KiB)

Is this the correct list of images?

https://github.com/pdso/DeveloperDiskImage

0 Votes 0 ·

If these are the right files, there's more work required. I made a 14.5 folder and copied both the image and the signature to it. Then I started again and once more got nowhere.

93355-image.png

93307-image.png


0 Votes 0 ·
image.png (22.5 KiB)
image.png (8.7 KiB)

Good find. Looks like them, but it doesn't work, just tried.
Tried the github ones, and also tried my local MAC files from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
And placed them into C:\Users\<username>\AppData\Local\Xamarin\iOS\DeveloperDiskImages\
And keep getting same error on the windows vs2019 "The device {guid} was not found."

Rollback the whole lot to old versions and avoid the updates from now on, I'm guessing. Or at least until MS is in the mood to look into this...
I have it working fine on 14.4.

0 Votes 0 ·
Show more comments

Subscribed. Exact same problem here with latest updates. Win10, VS 2019 16.9.4 and XCODE 12.5.
Can't run IOS simulators anymore, device not found.
Causing severe productivity issues, please help

0 Votes 0 ·

Try to downgrade Xcode to 12.4 , check the similar issue: https://stackoverflow.com/a/67312274/8187800 .

0 Votes 0 ·

I'll give that a shot, thank you.

0 Votes 0 ·

I tried rolling back the simulator runtimes to 14.4 first. This did not work.

In Xcode, go to Devices & Simulators
Create a new simulator. In the drop-down choose to download more Simulator Runtimes
Download 14.4 (5 GB)
Once it installs, cancel the new simulator you're creating. It should have already made all the 14.4 devices again

It tries to connect from Windows, but doesn't succeed.

Downloading Xcode 12.4 next.

0 Votes 0 ·

Temp workaround:
Tools > Options > Xamarin > IOS Settings > Uncheck "Remote Simulator to Windows"
This will effectively debug on the simulators however on the MAC only.

There is no ways to get it to work on Windows, we've tried everything up to re-installing Win10, VS2019, XCODE 12.5 and all attempts failed.
We'll have the team roll-back to previous ver of everything this coming Monday and wait until this gets patched-up by MS.

Unfortunate :(

0 Votes 0 ·

Attaching the trace log (VS 2019 16.9.4, XCODE 12.5) before we trash this whole set-up back to previous and functional versions.

92675-2021-04-30-08-14-40-7887.log


0 Votes 0 ·
Show more comments

1 Answer

BenFunk-6971 avatar image
0 Votes"
BenFunk-6971 answered
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.