Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Could not find a valid Xcode app bundle" error text isn't appropriate when using VS Code #19818

Closed
BretJohnson opened this issue Jan 12, 2024 · 0 comments · Fixed by #20306
Closed
Labels
documentation The issue or pull request is about documentation
Projects
Milestone

Comments

@BretJohnson
Copy link

Steps to Reproduce

  1. 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)

@rolfbjarne rolfbjarne added the documentation The issue or pull request is about documentation label Jan 12, 2024
@rolfbjarne rolfbjarne added this to the .NET 9 milestone Jan 12, 2024
@rolfbjarne rolfbjarne added this to Documentation in .NET 9 Jan 12, 2024
rolfbjarne added a commit to rolfbjarne/xamarin-macios that referenced this issue Mar 14, 2024
…bout VS. Fixes xamarin#19818.

Some people may use VSCode, or the command line, and talking about VS is confusing.

Fixes xamarin#19818.
rolfbjarne added a commit that referenced this issue Mar 20, 2024
…bout VS. Fixes #19818. (#20306)

Some people may use VSCode, or the command line, and talking about VS is confusing.

Fixes #19818.
.NET 9 automation moved this from Documentation to Done Mar 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation The issue or pull request is about documentation
Projects
2 participants