Open
Conversation
Add EnvironmentChecker that performs a comprehensive check of the Apple development environment by aggregating results from CommandLineTools, XcodeManager, and RuntimeService. Includes Xcode license validation (xcodebuild -license check) and first-launch support (xcodebuild -runFirstLaunch), patterns from ClientTools.Platform iOSSshCommandsExtensions. Also maps platform SDK directory names to friendly names (e.g. iPhoneOS -> iOS, XROS -> visionOS). Includes dependencies from PRs #156, #157, #159 which will merge cleanly when those PRs land first. Closes #148 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
rmarinho
added a commit
that referenced
this pull request
Feb 27, 2026
Add AppleInstaller that checks the current Apple development environment and installs missing components: - Command Line Tools (via xcode-select --install) - Xcode first-launch packages (via xcodebuild -runFirstLaunch) - Simulator runtimes (via RuntimeService.DownloadPlatform) Supports dry-run mode for reporting planned actions without changes. Includes EnvironmentChecker, CommandLineTools, XcodeManager, RuntimeService, and SimctlOutputParser dependencies from PRs #156-#160. Closes #152 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Fix XcodeManager.Select path normalization, HashSet dedup, and SimctlOutputParser JsonException handling. 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.
Summary
Add
EnvironmentCheckerthat performs a comprehensive check of the Apple development environment by aggregating results fromCommandLineTools,XcodeManager, andRuntimeService.Changes
New files
Xamarin.MacDev/EnvironmentChecker.cs— Comprehensive environment check: Xcode, CLT, runtimes, platform SDKs, license validation, first-launch supporttests/EnvironmentCheckerTests.cs— 10 tests for platform name mappingIncluded dependencies (from other PRs, will merge cleanly)
CommandLineTools.cs(PR Add Command Line Tools detection #156)XcodeManager.cs(PR Add Xcode management APIs #157)RuntimeService.cs+SimctlOutputParser.cs(PR Add runtime management APIs #159)How it works
Check()— Runs all checks and populatesEnvironmentCheckResultwith derived statusIsXcodeLicenseAccepted()—xcodebuild -license check(from ClientTools.Platform)RunFirstLaunch()—xcodebuild -runFirstLaunch(from ClientTools.Platform)Closes #148
Depends on: PRs #156, #157, #158, #159 (merge those first)