question

JohnLinck-7695 avatar image
5 Votes"
JohnLinck-7695 asked RobCaplan edited

iOS 14 Simulators not working in VS 19

Recently, I started developing in VS 2019 with a new Mac Mini with the new M1 chip. With the most recent version of XCode installed (12.3) and most recent MacOS (11.1), I am getting a black screen when trying to use the iOS 14.3 simulators through VS.
50921-image.png

However, instead of using the remote simulator in VS, the simulator works on the Mac.

I downloaded all the other iOS 14 Version simulators and they all do not work in VS. I also downloaded the iOS 13.7 simulator and that does work in VS. What steps can I take to find out why the iOS 14 simulators are not working properly.

dotnet-xamarin
image.png (18.2 KiB)
· 7
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.

Hello all,

For me the same. Updated all Mac and VS2019 to latest versions.
All iOS emulators do not start up and have a black screen for 4 months now.
Real devices no problem and Android Emulators work fine.

Anybody any clue? I tried firewall off and network settings.

Thnx.

1 Vote 1 ·

Hi, JohnLinck-7695. What view did you display on the screen? The ImageView? Someone faced the similar issue when loading the image, the solution is to place the file outside the Images.xcassets folder. Here is the case link, you could refer to it.


0 Votes 0 ·
Twan-8151 avatar image Twan-8151 FernandoCarvalho-4258 ·

I posted the solution below

0 Votes 0 ·

Hello all,

As up today... I am still having same problem....

Is it already solved?

Thx

0 Votes 0 ·

I posted the solution below

0 Votes 0 ·

That wasn't the solution. The black emulator screen is related to remote IOS using a M1 cpu and not Intel. It's some bug with Remote Simulator on M1 CPU's

0 Votes 0 ·
Digi-Man avatar image
0 Votes"
Digi-Man answered JustinCarman-1894 commented

@JarvanZhang-MSFT What you comment has to be used this way after Apple replaced the UILaunchStoryboardName key with UILaunchScreen, but that will just fix the splash screen when starting the app and doesn't fix the problem @JohnLinck-7695 is having, since the iOS 14 simulator doesn't work at all under Windows!

When enabling a simulator under Windows, any iOS simulator is "mirrored" in the paired Mac. During the booting process of any iOS 14 simulator, it's easy to see that the simulator running on the paired Mac closes, leaving the one under Windows stuck in a blank screen. Not even the booting image/progress bar of the Apple is shown.

As @JohnLinck-7695 stated, if you disable the iOS 14 simulator under Windows, it's easy to see that the simulator and the app runs perfect on the paired Mac, meaning the problem is not on the Mac's side.


· 3
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.

Same issue is reported here


1 Vote 1 ·

I have this same issue

1 Vote 1 ·

This is happening to us as well. Completely unable to use the Xamarin iOS Simulator from Windows 10, only happening when using an M1-based Mac. There's no boot screen or loading sequence displayed either, so it has nothing to do with app-specific code - it simply seems unable to connect to the mono simulator running on the M1 Mac. Firewalls are disabled on both the Windows and Mac, to rule out any kind of network connectivity issues. Things work fine when forcing it to load the simulator on the Mac.

I'm using VS 2019 (v16.9.3) on Windows 10 connecting to an M1-based Mac (Big Sur v11.2.3), Xcode (12.4), and VS 2019 (8.9.4, build 25). It's been nearly 4 months since this issue was originally reported and the only workaround is to 'disable the Windows simulator'. Is there any additional information/updates on the progress to resolve this bug?

Thanks!

1 Vote 1 ·
Twan-8151 avatar image
1 Vote"
Twan-8151 answered

I found out the issue. It is a resource issue on the Mac Book.
In the Mac simulator you can find the solution to the problems in the help section.

85344-image.png



image.png (144.7 KiB)
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.

sphauck avatar image
2 Votes"
sphauck 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.

JustinCarman-1894 avatar image
6 Votes"
JustinCarman-1894 answered

I just upgraded Visual Studio 2019 (Windows) to 16.9.4, Visual Studio 2019 (for Mac) to 8.9.7 (build 8), and to the M1 Mac Mini to macOS 11.3 - still having similar issues. Now, instead of showing a black screen for the simulator, VS2019 shows an error stating "The device {simulator guid} was not found". I confirmed in XCode that the iPhone 12 14.5 simulator was installed and available as a simulator to be able to run apps against. See screenshot below. This is really getting frustrating, going on months with this issue and no response from Microsoft.

92281-image.png



image.png (6.3 KiB)
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.

NicoleLu-9366 avatar image
2 Votes"
NicoleLu-9366 answered JamesGreen-7270 commented

Thank you all for posting the issue. Here's some information you can refer to:

"The device [GUID] was not found" problem is a known issue with the upgrade to Xcode 12.5. You can track it at https://developercommunity2.visualstudio.com/t/iOS-Simulators-No-Longer-Work-When-Upgra/1410183. We are working on it right now and hope to bring the fix to you as soon as possible.

And it does not appear related to the black screen problem (tracked at https://developercommunity.visualstudio.com/t/remoted-ios-simulator-shows-up-as-black-screen/1320089?from=email&viewtype=all#T-ND1388416 ). Which is also under track.

The best place to report Visual Studio tooling issues is via Visual Studio's "Report a Problem" menu and then follow them on the developer community site. Please see How to report a problem with Visual Studio - Visual Studio | Microsoft Docs


· 2
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.

hello all, Xcode 12.5 issue for VS has got some workaround which you can try, check the details in: https://developercommunity.visualstudio.com/t/VS-2019-1694-cannot-connect-to-iOS-Sim/1412563#T-N1422248

1 Vote 1 ·

So I've just bought an M1 Mac Mini as my early 2013 MacBook Pro was just bricked by Apple and the VS toolchain is moaning about old versions.

So I get a new Mac and run headlong into this issue immediately.

I have deadlines :(

0 Votes 0 ·