question

Stesvis-5434 avatar image
1 Vote"
Stesvis-5434 asked ·

VS on MAC can't find Xcode 12.4

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!



dotnet-xamarinformsvs-general
· 1
10 |1000 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.

I had Same problem. Thanks for the solution. You really do have to add the trailing slash to get VS to save the change.

0 Votes 0 ·
Stesvis-5434 avatar image
2 Votes"
Stesvis-5434 answered ·

Fixed with this value /Applications/Xcode.app/ (note the trailing slash)

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

LeonardoDias-6443 avatar image
0 Votes"
LeonardoDias-6443 answered ·

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?

· 1 ·
10 |1000 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.

I haven't used Android on the Mac, but in VS 2019 these are my settings:
76491-image.png


0 Votes 0 ·
image.png (48.4 KiB)
LeonardoDias-6443 avatar image
0 Votes"
LeonardoDias-6443 answered ·

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

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