Fix ‘Xcode is not currently installed or could not be found’ error in Visual Studio 2019 for Mac

In this post I show you how to easily fix the Xcode install location in VS 2019 for Mac after installing the Xcode CLI tools.
vs-preferences-wrong-sdk-location

Every now and then, our IDE’s get some updates. This week, Visual Studio for MacOS got updated once again. After that, there was a separated Download initiated for the Xcode Command Line Tools. Two days later, Visual Studio started to greet me with this little message:

Xcode missing message VS Mac

Of course, I checked first that my installed version of Xcode is still working – it stopped already for me some time ago and I had to reinstall it. As you can see, that was not the case:

Xcode 12.5 about window

After doing some research on the web, others had similar issues. The problem was that the installation of the Xcode CLI tools has overridden the location of Xcode in Preferences – as you can see in the

The fix is easy, just paste /Applications/Xcode.app/ into the location field. Please note that the trailing slash is also important:

The dialog will immediately verify the existence of Xcode (at least in version 8.9.10). Just hit that restart button and you are once again good to go.

As always, I hope this short post will be helpful for some of you.

Until the next post – happy coding, everyone.

Comments 3
  1. This fixed my issue! Thank you so much! I had so many other issues trying to get VS to work on my mac and you saved me so much more time so I can actually get in and learn

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Prev
Workaround to force Xamarin.Forms WebView to use a dark mode CSS for local content on Android
android_webview_darkmode_xamarinforms

Workaround to force Xamarin.Forms WebView to use a dark mode CSS for local content on Android

Next
Dealing with the System UI on iOS in Xamarin.Forms
DealingWithTheSystemUIoniOSXF

Dealing with the System UI on iOS in Xamarin.Forms

You May Also Like

This website uses cookies. By continuing to use this site, you accept the use of cookies.  Learn more