feat: pre-built iOS XCUITest bundle for zero-config install#27
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a zero-config installation path for iOS automation on Apple Silicon by shipping a pre-built XCUITest bundle in releases, extending the installer to fetch it, and teaching the MCP server to prefer xcodebuild test-without-building with an automatic fallback to source builds.
Changes:
- Add
ios-release-buildCI job to build/archive an iOS XCUITest bundle and attach it to GitHub Releases. - Update
install.shto download/extract the iOS bundle on macOS arm64 (skip elsewhere with informational output). - Update
ios_start_automation_serverto prefer pre-built.xctestrundiscovery, with source-build fallback; refactor shared helpers and add unit tests.
Reviewed changes
Copilot reviewed 12 out of 12 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
.github/workflows/release.yaml |
Builds and publishes ios-automation-server.tar.gz (+ checksum) as a release asset via a macOS job. |
install.sh |
Downloads/verifies/extracts the iOS bundle on macOS arm64 and reports install status. |
app/src/main/kotlin/com/example/visiontest/ToolFactory.kt |
Adds .xctestrun discovery, command builder, shared polling helper, and dual-path iOS server start logic. |
app/src/main/kotlin/com/example/visiontest/config/IOSAutomationConfig.kt |
Adds constant for the iOS bundle subdirectory name. |
app/src/test/kotlin/com/example/visiontest/ToolFactoryPathTest.kt |
Adds tests for .xctestrun discovery and xcodebuild command construction. |
CLAUDE.md |
Documents the new release assets and the macOS arm64 pre-built iOS flow. |
openspec/changes/ios-prebuilt-bundle/* |
Updates proposal/design/specs/tasks to reflect the pre-built bundle approach and requirements. |
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
on Apple Silicon Macs — no Xcode IDE or source checkout required
bundle, archives it as
ios-automation-server.tar.gz, and includes it inGitHub Releases
install.shto download and extract the iOS bundle on macOSarm64 (skipped on Linux and Intel Macs with informational messages)
ios_start_automation_server: preferspre-built bundle via
xcodebuild test-without-building, falls back tosource build automatically if the bundle fails
resolveInstallDir()helper shared by APK and xctestrundiscovery
startAndPollServer()helper to eliminate duplicated pollinglogic between primary and fallback paths
Test plan
./gradlew :app:testpasses (includes newToolFactoryPathTestcases for
findXctestrunandbuildXcodebuildCommand)install.shon macOS arm64 and confirm the iOS bundle isextracted to
~/.local/share/visiontest/ios-automation-server/ios_start_automation_serverwith a pre-built bundleinstalled and verify it uses
test-without-buildingbuild from the Xcode project