VS on MAC can't find Xcode 12.4

Stesvis 1,041 Reputation points
2021-03-07T19:49:12.687+00:00

I recently updated VS for mac to the latest version 8.9 (build 1651) and also Xcode to v12.4 (12D4e).
The problem is that now when I start Visual Studio it keeps showing a message saying that

Xcode is not currently installed or could not be found.

I went to preferences and under Apple SDK i have this path: /Library/Developer/CommandLineTools.

  1. I cleared the value, left it blank, saved, restarted visual studio: preferences didn't save and I keep seeing that value
  2. I saved the SDK location as /Applications/Xcode.app: it says "Xcode 12.4 found at default location", i click OK, restart visual studio and the same error appears. I go to preferences and I still see /Library/Developer/CommandLineTools again.

So basically I can't run the iOS project because it can't find any simulators.

Did anybody have the same problem? How did you solve it?
Wasting so much time for these issues is so frustrating.

Thanks!

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,294 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,613 questions
{count} vote

2 additional answers

Sort by: Most helpful
  1. Leonardo Dias 1 Reputation point
    2021-03-10T19:12:35.277+00:00

    Are you getting a error message with android sdk aswell? Here it is saying that Android NDK Location was not found, can you please share yours?


  2. Leonardo Dias 1 Reputation point
    2021-03-11T19:25:11.34+00:00

    Solved it! I had to download Android NDK in the Android SDK Management, thank you! You saved me with the iOS solution!

    0 comments No comments