Xamarin does not recognize the installed XCode

Code FL 21 Reputation points
2021-09-18T23:38:28.547+00:00

Hello,

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
/Library/Developer/CommandLineTools

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

133323-screen-shot-2021-09-18-at-43531-pm.png

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

Thanks,
Frank

Xamarin
Xamarin
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
    2021-09-20T01:24:05.033+00:00

    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.

    Regards,
    Kyle


    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