Ian Boggs
Ian Boggs

Reputation: 542

Visual Studio For Mac Not Seeing Simulators

I have taken delivery of a new Macbook Pro (M2 Pro) and I'm setting it up for development. I've installed the latest XCode (14.3) and Visual Studio For Mac (17.5.3)

I've opened up a project but I'm not able to see the iOS Simulators to test on. I've re-installed both, ensured that VS is pointing to the SDK (/Applications/Xcode.app) as well as opening up XCode first to ensure all licenses and such like have been accepted. However I'm still not seeing any Simulators. I can see them in Xcode, and can run them and run a Flutter app from Visual Studio Code on a Simulator. I just can't get Visual Studio For Mac to see them.

Does anyone have any ideas?

Upvotes: 1

Views: 9743

Answers (4)

Andy Dent
Andy Dent

Reputation: 17971

As of 2023-09-27 now waiting for Visual Studio for Mac to be updated to support XCode 15. I have an XCode 14.3.1 install also on my Mac and can swap to that with xcode-select then I see simulators.

With XCode 15 as my selected IDE, I get the frustrating typical message:

Lower the 'Deployment Target' to see older simulators or check your Apple SDK path" which translates as

I don't understand the current XCode.

XCode15 compatibility is still an open issue 17837 on the iOS/macIOS Xamarin repo.

Upvotes: 1

whoismuktar
whoismuktar

Reputation: 351

If both your VS Code and XCode are up to date andd you are getting this error:

ProcessException: Process exited abnormally:
xcrun: error: unable to find utility "xcodebuild", not a developer tool or in PATH
  Command: xcrun xcodebuild -list -project Runner.xcodeproj

Goto: Xcode -> Preferences/Settings -> Locations

Select Command Line Tools from the drop-down menu. If there is only one version of Xcode installed, there should only be one option. If there are multiple Xcode versions, you must select the one you want.

If the dropdown shows an already version, make sure to reselect it. You should be prompted for authorization.

enter image description here

Upvotes: 3

dkmorb
dkmorb

Reputation: 11

Here you can download and install this package. Source https://github.com/xamarin/xamarin-macios/issues/17561

Upvotes: 1

Simon McGuirk
Simon McGuirk

Reputation: 26

Morning Ian, also seeing this issue since updating to Xcode 14.3. Waiting on Visual Studio for Mac update to add support for Xcode 14.3. You should be able to install Xcode 14.2 from https://developer.apple.com/download/all/?q=Xcode as a short term workaround.

Upvotes: 1

Related Questions