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.
23,950 questions
{count} votes

3 answers

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

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


  2. Hui Li 6 Reputation points

    @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

  3. 2021-03-22T03:16:30.76+00:00
    No comments