question

TomFlemming-2523 avatar image
0 Votes"
TomFlemming-2523 asked RobCaplan edited

Visual Studio Mac configuration iPhone Simulator is gone

visual studio mac 8.9.1 configuration iphone simulator is gone, it was there last week. Running xcode 12.4, simulator 14.2 is installed. How to get back debugging ios-app on simulator?

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

TomFlemming-2523 avatar image
0 Votes"
TomFlemming-2523 answered CristianMartinez-8000 commented

Hi ColeXia, thanks for your response. Yes, there is plenty of Simulators.
The problem is, that in Visual Studio Mac in the list of configuration Debug|iPhoneSimulator is missing, don't know why, it was there last week before updating to VS Mac 8.9.1

76762-screen-shot-2021-03-11-at-124709.png

But I found a workaround by creating a new solution configuration DebugSim with iPhoneSimulator and now I have all simulators back:

76793-screen-shot-2021-03-11-at-124954.png

76754-screen-shot-2021-03-11-at-125507.png



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

@ColeXia-MSFT I will, but don't you guys want to fix something? I mean, it was working, then it was gone and it took me some hours to figure out this workaround which is still kind of a hack.

1 Vote 1 ·

I've reported this issue to my team ,thanks for pointing it .

0 Votes 0 ·

Hello @ColeXia-MSFT is there any update on this? I have Xcode version 13.1 and VS 2019 version 8.10.13. I've tried this and didn't get success. Can you help me? I don't see any emulator in VS using debug mode in my xamarin forms project.

0 Votes 0 ·

Great, could you mark this solution as answer ?

0 Votes 0 ·
ColeXia-MSFT avatar image
0 Votes"
ColeXia-MSFT answered

Hello,

Welcome to Microsoft Q&A!

1 . Open Xcode - Window - Devices and Simulators .
2 . Check if there is any Simulator in left list ,if not add the + button .

76489-inkedscreen-shot-2021-03-11-at-104910-am-li.jpg

3 . Select Device Type and OS Version and click Create .

76544-screen-shot-2021-03-11-at-104936-am.png

4 . Restart Visual Studio you will see the simulator in configuration .

76468-screen-shot-2021-03-11-at-105127-am.png

(I test with VS for mac 8.9.1 and Xcode 12.4 . )


If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.




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.

fhintsch-7402 avatar image
0 Votes"
fhintsch-7402 answered

I have many simulators listed by Xcode. But this does not help VC. Very bad...

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.

RobertLensing-8965 avatar image
3 Votes"
RobertLensing-8965 answered BojanVlasonjic-2115 published

I had the same issue, after installing Apples latest XCode update this morning. The simulators appeared again, after I had once explicitly started XCode after that (which I normally do not need in daily business). I had a look in the context of above mentioned proposal to manually add simulators again (assuming they were gone). They were all still there, but for some reason not exposed to Visual Studio. As soon as XCode was started and I had restarted Visual Studio, they showed up again.

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

Had the same effect and restarting XCode and VS worked for me as well.

2 Votes 2 ·

This comment was the only one that helped me fix this issue in the meantime. For others having the same issue, please make sure that XCode is running before you start Visual Studio. I hope this gets fixed soon, but this got me up and running.

0 Votes 0 ·

Had a similar issue. Tried following up with your example, but it didn't help because I made quite a big miss. I updated XCode to the latest version, but didn't update VisualStudio, lol

0 Votes 0 ·
AmirHajiha-6272 avatar image
0 Votes"
AmirHajiha-6272 answered BojanVlasonjic-2115 commented

I still have this issue!

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

It seems to me a timing raise condition issue. I close the project and then re-open it immediately and now all simulators are available.

1 Vote 1 ·

Did you update both XCode and VisualStudio?

0 Votes 0 ·
Clifton-6890 avatar image
0 Votes"
Clifton-6890 answered

I closed the project, cleared the bin and obj folders, and finally re-opened the project, afterwards the simulators were displayed again.

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.

25793866 avatar image
0 Votes"
25793866 answered 25793866 published

run flutter doctor and resolve errors and warnings

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.