Xamarin does not recognize the installed XCode

Code FL 21 Reputation points


I have installed visual studio for mac 2019 today in order to start learning Xamarin. My dev machine:

  • Mac Book Pro with Big Sur version 11.2.3
  • XCode version Version 12.5.1 (12E507)

After I created the first sample project, I noticed the message says it does not detect the installed XCode. Checked the vs configuration of the SDK location:

  • /Library/Developer/CommandLineTools

I use the command below to check my SDK installation. It shows the SDK location is the same as vs configuration.

% xcode-select -p

Attached is the content of "/Library/Developer/CommandLineTools".


I don't know what else is needed to make it work.


A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,314 questions
0 comments No comments
{count} votes

Accepted answer
  1. Kyle Wang 5,531 Reputation points

    Hi CodeFL-8603,

    Welcome to our Microsoft Q&A platform!

    You can try to go to Visual Studio Preferences and select SDK Locations -> Apple. Click the button "Browse..." and select the Xcode under path Application.

    Now the location is changed to /Applications/Xcode.app. Then restart Visual Studio.

    If this doesn't work, add a slash at the end. Just like /Applications/Xcode.app/ and restart it again.


    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.

0 additional answers

Sort by: Most helpful