Can't find Apple SDK Location despite correct SDK path
See original GitHub issueProblem 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:
- Created 5 months ago
- Comments:5 (2 by maintainers)
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?
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.