You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Produce a condition where the 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). message shows up. For me, this happened on my Mac with a newly installed Xcode, using VS Code with the MAUI extension to build for iOS.
Expected Behavior
The error message shouldn't include VS Mac specific instructions when using VS Code on Mac. Instead, I'd suggest creating an aka.ms link and pointing the user to doc instead. I ended up needing to follow the instructions in https://learn.microsoft.com/en-us/dotnet/maui/get-started/installation?view=net-maui-8.0&tabs=visual-studio-code, in particular this step If you're still facing issues, open Xcode itself to make sure it loads correctly. Once Xcode is open, navigate to Xcode > Settings > Locations and check that the Command Line Tools field is pointing to the correct Xcode.. For me, even though I just had one version of Xcode installed, this was currently unset and I needed to pick the only choice in the list to set it. Pointing to the doc keeps things flexible, telling the user how to fix it, doing the xcode-select first, then checking the above setting, etc.
Actual Behavior
Message text is as described, with VS Mac specific instructions when using VS Code.
Environment
Version information
Build Logs
Example Project (If Possible)
The text was updated successfully, but these errors were encountered:
Steps to Reproduce
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).
message shows up. For me, this happened on my Mac with a newly installed Xcode, using VS Code with the MAUI extension to build for iOS.Expected Behavior
The error message shouldn't include VS Mac specific instructions when using VS Code on Mac. Instead, I'd suggest creating an aka.ms link and pointing the user to doc instead. I ended up needing to follow the instructions in https://learn.microsoft.com/en-us/dotnet/maui/get-started/installation?view=net-maui-8.0&tabs=visual-studio-code, in particular this step
If you're still facing issues, open Xcode itself to make sure it loads correctly. Once Xcode is open, navigate to Xcode > Settings > Locations and check that the Command Line Tools field is pointing to the correct Xcode.
. For me, even though I just had one version of Xcode installed, this was currently unset and I needed to pick the only choice in the list to set it. Pointing to the doc keeps things flexible, telling the user how to fix it, doing thexcode-select
first, then checking the above setting, etc.Actual Behavior
Message text is as described, with VS Mac specific instructions when using VS Code.
Environment
Version information
Build Logs
Example Project (If Possible)
The text was updated successfully, but these errors were encountered: