question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't find Apple SDK Location despite correct SDK path

See original GitHub issue

Problem encountered on https://dotnet.microsoft.com/en-us/learn/maui/first-app-tutorial/run Operating System: macos

Hi there,

I’m using .NET MAUI for the first time on my Macbook Pro running Ventura 13.3. Currently trying to run the default hello world app with Visual Studio, just to see if it builds properly. However, it can’t find the macOS SDK. I have double checked that I have the correct path to the SDK in Visual Studio preferences > SDK Locations > Apple (confirmed via xcrun --show-sdk-path output in terminal). I have also restarted Visual Studio multiple times and selected Xcode 14.2 (14C18) under Xcode > Settings > Locations > Command Line Tools.

Here is the error received when attempting build the application:

Error: Could not find a valid Xcode app bundle at '/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk'. Please update your Apple SDK location in Visual Studio's preferences (Projects > SDK Locations > Apple > Apple SDK).

Any help here would be much appreciated!

Thanks for your time.

Issue Analytics

  • State:closed
  • Created 5 months ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
jfversluiscommented, Apr 16, 2023

Hey there, glad to see you’re trying .NET MAUI! Sorry you’re running into a snag here.

Did you try and start Xcode? It might prompt you to install additional command-line tools. Does it do that, and if you install those, does this error go away?

0reactions
msftbot[bot]commented, May 31, 2023

Thanks for the issue report @mash808! This issue appears to be a problem with Visual Studio, so we ask that you use the VS feedback tool to report the issue. That way it will get to the routed to the team that owns this experience in VS.

If you encounter a problem with Visual Studio, we want to know about it so that we can diagnose and fix it. By using the Report a Problem tool, you can collect detailed information about the problem, and send it to Microsoft with just a few button clicks.

  1. Go to the Visual Studio for Windows feedback tool or Visual Studio for Mac feedback tool to report the issue
  2. Close this bug, and consider adding a link to the VS Feedback issue so that others can follow its activity there.
Read more comments on GitHub >

github_iconTop Results From Across the Web

SDK Path wrong | Apple Developer Forums
3. Go to the Search Paths section of the build settings, and check that an explicit reference to the SDK hasn't been added...
Read more >
Finding Android SDK on Mac and adding to PATH
1. How to find it. Open Android studio, go to Android Studio > Preferences; Search for sdk; Something similar to this (this is...
Read more >
Visual Studio for Mac: No SDK found at specified location.
Trying to compile an iOS project on the command line throws this error: Could not find a valid Xcode app bundle at '/Library/Developer/ ......
Read more >
How to Fix "SDK location not found" in Android Studio?
Go to your project then go to the android directory and create a file with the following name – local.properties; Open the file...
Read more >
How to Fix: Visual Studio for Mac: No SDK found at ...
Please update your Apple SDK location in Visual Studio's preferences (Projects > SDK Locations > Apple > Apple SDK). If we navigate to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found