question

CodeFL-8603 avatar image
0 Votes"
CodeFL-8603 asked CodeFL-8603 commented

Xamarin does not recognize the installed XCode

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


dotnet-xamarin
5 |1600 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.

1 Answer

KyleWang-MSFT avatar image
0 Votes"
KyleWang-MSFT answered CodeFL-8603 commented

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.

· 1
5 |1600 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.

Thank you Kyle. It works now :) Really appreciated.

It would be better to change the default value of the settings in the future release.

Thanks,
Frank

0 Votes 0 ·