Skip to content

feat(release): prebuilt binaries for Intel Macs - #182

Merged
Derrors merged 1 commit into
mainfrom
feat/macos-x86_64
Nov 24, 2026
Merged

Derrors merged 1 commit into
mainfrom
feat/macos-x86_64

Conversation

@Derrors

@Derrors Derrors commented Nov 24, 2026

Copy link
Copy Markdown
Owner

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 with iphone-control update.

  • Release workflow: macos-binary is 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 its Check runs --version under Rosetta (installed first if missing) and verifies minos 11.0. fail-fast: false; upload, compare and signing cover both archives; release notes list macos-x86_64.
  • Minimum macOS: .cargo/config.toml sets MACOSX_DEPLOYMENT_TARGET=11.0 for 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).
  • install.sh (packaging/installer.py): release_target() picks macos-x86_64 on an Intel Mac; an Apple Silicon Mac whose Python runs under Rosetta still gets arm64, as before.
  • Updater: update::target() maps macOS x86_64 to macos-x86_64; until a release has that archive an Intel Mac sees "pending", not another platform's package.
  • Homebrew: formula.sh takes 5 checksums; macOS has on_arm / on_intel and depends_on macos: :big_sur instead of arch: :arm64.
  • CI: the macos job also runs clippy for x86_64-apple-darwin; cargo-about covers the new target.
  • Docs: READMEs, website (zh/en), D14 addendum, CONTRIBUTING, release-updates, CHANGELOG. The website is published from main, so it says Intel packages come "with 0.2.14": adjust if the next version number differs.

Part of #181 (the packages appear with the next release).

Tests

1. Unit tests

  • New: test_release_target (installer: Intel, Apple Silicon, Python under Rosetta, Linux, unsupported); updater availability for macos-x86_64 without an archive
  • Native (arm64): fmt, cargo clippy --workspace --all-targets --all-features --locked -- -D warnings, cargo test --workspace --all-features --locked: 534 passed
  • x86_64 under Rosetta: cargo clippy … --target x86_64-apple-darwin clean; 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; shellcheck and ruby -c on the formula; brew style shows no new offenses beyond the fake checksums
  • No existing test removed, ignored or loosened

2. Real-device regression

  • Not run on an Intel Mac (none available). The x86_64 release build (cargo build --release --target x86_64-apple-darwin) runs under Rosetta: --version, and status / devices against 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)

  • All cases still hold; none touch the release packaging

🤖 Generated with Claude Code

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>
@Derrors
Derrors merged commit a479da1 into main Nov 24, 2026
9 checks passed
@Derrors
Derrors deleted the feat/macos-x86_64 branch November 24, 2026 11:17
@Derrors Derrors mentioned this pull request Nov 24, 2026
12 tasks done
Derrors added a commit that referenced this pull request Nov 24, 2026
Version 0.2.14 in Cargo.toml and Cargo.lock (this workspace's crates only),
and the changelogs' 0.2.14 section with #180 and #182.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant