question

DevMonkey-5038 avatar image
0 Votes"
DevMonkey-5038 asked KanmaniPalani-7925 published

How to display iPhone simulators in Visual Studio for Mac?

I’m trying to run an iOS project in Visual Studio for Mac Community 8.10.5.

At the top of the Visual Studio window, next to the iOS project name, I have selected Debug | iPhoneSimulator. The menu to the right of that displays a Simulator heading, and under that, Lower the ‘Deployment Target’ to see older simulators or check your Apple SDK path.

In the iOS project’s Info.plist file, the Minimum system version is set to 7.0.

I have checked the Apple SDK path under Preferences\SDK Locations\Apple, the Location is set to /Applications/Xcode.app, and the message Xcode 12.5.1 found at the system location (xcode-select) appears above that, preceded by a green tick.

I opened Xcode and looked at the listed Simulators, and there are ten iPhone simulators listed starting with "iPhone 8" and finishing at "iPhone 12 mini".

I tried adding a new simulator in Xcode with Model set to iPhone 11, closed Xcode and Visual Studio and restarted the computer. Opening Visual Studio again, there are still no iPhone simulators listed.

When I first installed Visual Studio for Mac, it did display iPhone simulators. I think they stopped being listed after one of the Visual Studio updates some time ago, and I haven’t been able to get them to reappear since.

dotnet-xamarin
· 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.

Firstly, you updated VS to the latest version, please update the XCode to the latest as well.

Please try to set the Minimum system version is set to 8.0. Then run a sample test project on XCode , restart XCode and restart Visual Studio, If this issue is still existed.

1 Vote 1 ·

I have the same problem and followed your steps but without success.

0 Votes 0 ·

Thank you. I have followed the same process and updated the VisualStudio.Now it lists down the simulators.

0 Votes 0 ·
MichaelLeung-9507 avatar image
0 Votes"
MichaelLeung-9507 answered

Hi,

I also face the same issue. My workaround is to set the "Minimum system version" in Visual Studio's IOS project plist to "8" instead of "8.0". Wait a minute and all iPhone simulators re-appears.

Seems like a bug in the latest Visual Studio for Mac.

Hope this help.

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.

PterTfalvy-0446 avatar image
0 Votes"
PterTfalvy-0446 answered

Same problem for me.
I tried to set the system version to 8 but it didn't help.

I can't believe that this bug is not fixed since July!

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.

MisaelMonterroca-3029 avatar image
0 Votes"
MisaelMonterroca-3029 answered MisaelMonterroca-3029 published

If you Have instaled XCode13, That's the problem. You need to downgrade to Xcode 12.5

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.