Visual Studio for Mac: No SDK found at specified location.

Lars Gossard 51 Reputation points

After updating Visual Studio for Mac to version 8.9 the Apple SDK is no longer found. When entering /Applications/ Visual Studio states XCode 12.4 found at default location. After restarting Visual Studio it is set back to /Library/Developer/CommandLineTools stating No SDK found at specified location.

Also, there is no longer an iOS item in section Projects.

Trying to compile an iOS project on the command line throws this error:
Could not find a valid Xcode app bundle at '/Library/Developer/CommandLineTools'. Please update your Apple SDK location in Visual Studio's preferences (Projects > SDK Locations > Apple > Apple SDK).

What happened? I could not find any related information in the Release notes.




Not Monitored
Not Monitored
Tag not monitored by Microsoft.
37,103 questions
{count} votes

4 answers

Sort by: Most helpful
  1. Paul Pflug 121 Reputation points

    Try to change the location to /Applications/ (with trailing slash). After restarting VS it works for me.


    24 people found this answer helpful.

  2. Hui Li 6 Reputation points Microsoft Employee

    @Lars Gossard
    You can set the path to /Applications/ to fix the issue.
    You can open xcode on your macbook and check "Locations" , then "Command Line Tools", choose Xcode that you installed, copy the location to the Visual Studio preferences-->SDK Locations-->Apple-->Location

    1 person found this answer helpful.

  3. Robert de Jongh 5 Reputation points

    I fixed it by starting Xcode then select "Settings..." and then in the Locations tab I choose Command Line Tools. Initially the path /Application/ was empty.

    I hope this helps.

    1 person found this answer helpful.

  4. Cole Xia (Shanghai Wicresoft Co,.Ltd.) 6,751 Reputation points
    0 comments No comments