Open
Conversation
Add Xcodes.app-compatible selection modes for renaming, direct selection, and optional symbolic links. Persist the new selection preferences in settings and update the CLI to expose equivalent options. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Sherpa's Xcode selection behavior diverged from Xcodes.app and could leave developer tool resolution in a state that broke MAUI builds looking for utilities like
ibtoolorderq. This change mirrors Xcodes.app's active selection options so users can choose the behavior that matches their environment.Summary
renamevsnone, plus an optional symlink-on-select toggle.XcodeServiceand the CLI to honor those modes:rename: move the selected bundle to/Applications/Xcode.appand select it.none: leave bundle names unchanged and run/usr/bin/xcode-select -son the selected bundle path.nonemode, create/Applications/Xcode.appas a symbolic link when it is safe to do so.renameto preserve the current Sherpa behavior unless the user opts out.Notes
The symbolic link option intentionally matches Xcodes.app: it creates a plain symlink, not a hard link, and it refuses to replace a real
/Applications/Xcode.appbundle.Validation
dotnet test tests/MauiSherpa.Core.Tests/MauiSherpa.Core.Tests.csproj --filter XcodeServiceTests --no-restoredotnet build src/MauiSherpa.Cli/MauiSherpa.Cli.csproj --no-restoredotnet build src/MauiSherpa -f net10.0-maccatalyst --no-restore