Repository navigation
feat(release): prebuilt binaries for Intel Macs - #182
Merged
Merged
Conversation
Build a macos-x86_64 archive next to macos-arm64, cross-compiled on the same Apple Silicon runner (ad-hoc signed, checked under Rosetta), and sign, publish and install it like the others: release.py target, install.sh picks it on an Intel Mac (Apple Silicon running Python under Rosetta still gets arm64), the updater maps macOS x86_64 to it, and the Homebrew formula has on_intel for macOS. Pin MACOSX_DEPLOYMENT_TARGET=11.0 in .cargo/config.toml: Rust defaults to 10.12 on x86_64, where linking CoreMedia pulls in libswiftCoreMedia through @rpath and the binary aborts at start. CI also runs clippy for x86_64-apple-darwin. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.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.
What and why
Requested in #181: Intel Macs could only build from source. Releases now also ship
iphone-control-vX.Y.Z-macos-x86_64.tar.gz, installable with the one-line script and Homebrew and upgradable withiphone-control update.macos-binaryis a matrix (arm64, x86_64), both on the Apple Silicon runner; x86_64 is cross-compiled (GitHub's Intel macOS runners are being phased out), ad-hoc signed (the linker only signs arm64), and itsCheckruns--versionunder Rosetta (installed first if missing) and verifiesminos 11.0.fail-fast: false; upload, compare and signing cover both archives; release notes listmacos-x86_64..cargo/config.tomlsetsMACOSX_DEPLOYMENT_TARGET=11.0for every build. Rust's default on x86_64 is 10.12, and there linking CoreMedia (VideoToolbox encoder) adds@rpath/libswiftCoreMedia.dylib; the binary aborted at start (dyld: Library not loaded). This also fixes from-source builds on Intel Macs. arm64 is unchanged (its default was already 11.0).packaging/installer.py):release_target()picksmacos-x86_64on an Intel Mac; an Apple Silicon Mac whose Python runs under Rosetta still gets arm64, as before.update::target()maps macOS x86_64 tomacos-x86_64; until a release has that archive an Intel Mac sees "pending", not another platform's package.formula.shtakes 5 checksums; macOS hason_arm/on_intelanddepends_on macos: :big_surinstead ofarch: :arm64.x86_64-apple-darwin;cargo-aboutcovers the new target.Part of #181 (the packages appear with the next release).
Tests
1. Unit tests
test_release_target(installer: Intel, Apple Silicon, Python under Rosetta, Linux, unsupported); updater availability formacos-x86_64without an archivecargo clippy --workspace --all-targets --all-features --locked -- -D warnings,cargo test --workspace --all-features --locked: 534 passedcargo clippy … --target x86_64-apple-darwinclean;cargo test --workspace --all-features --locked --target x86_64-apple-darwin: 534 passed (one earlier run had a single failure in a one-test binary that didn't reproduce; that run was also before the deployment-target fix)python3 packaging/test_installer.py: 18 tests OK;shellcheckandruby -con the formula;brew styleshows no new offenses beyond the fake checksums2. Real-device regression
cargo build --release --target x86_64-apple-darwin) runs under Rosetta:--version, andstatus/devicesagainst the running daemon. No phone session through the x86_64 build (the phone was disconnected). Not covered: VideoToolbox's hardware encoder on Intel (different from Apple Silicon), real Intel CPU behaviour.3. Regression cases (docs/dev/regression-cases.md)
🤖 Generated with Claude Code