Open
Conversation
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 issues found by GPT-5.2, Gemini 3 Pro, and Claude Sonnet 4.5: - XcodeManager.Select: normalize .app bundle path to Developer directory before calling xcode-select -s (GPT-5.2) - AppleInstaller.EnsureCommandLineTools: use absolute path /usr/bin/xcode-select instead of PATH resolution (GPT-5.2) - SimctlOutputParser: catch JsonException on malformed simctl JSON to return partial results instead of crashing (Sonnet 4.5) - XcodeManager.FindXcodeApps: use HashSet for O(1) dedup instead of List.Contains O(n) (Sonnet 4.5) 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
AppleInstallerthat orchestrates Apple development environment setup by checking the current state and installing missing components.Changes
New files
Xamarin.MacDev/AppleInstaller.cs— Orchestrator: checks environment, installs CLT, runs first-launch, downloads runtimestests/AppleInstallerTests.cs— 6 tests for constructor validation and DeriveStatus logictests/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)SimctlOutputParser.cs(PR Add simulator management APIs #158)RuntimeService.cs(PR Add runtime management APIs #159)EnvironmentChecker.cs(PR Add environment check APIs #160)How it works
EnvironmentChecker.Check()for initial statexcode-select --installxcodebuild -runFirstLaunchRuntimeService.DownloadPlatform()EnvironmentCheckResultSupports
dryRunmode that logs planned actions without executing.Closes #152
Depends on: PRs #156, #157, #158, #159, #160 (merge those first)