Skip to content

Mac: support macOS 12 (Monterey) as the minimum version - #482

Open
tegarp00 wants to merge 1 commit into
libracoder:mainfrom
tegarp00:macos-12-support
Open

tegarp00 wants to merge 1 commit into
libracoder:mainfrom
tegarp00:macos-12-support

Conversation

@tegarp00

@tegarp00 tegarp00 commented Nov 17, 2026 •

Copy link
Copy Markdown

What this changes and why

Lowers Kiri's minimum macOS version from 14 to 12 (Monterey). The 14.0 floor came only from the app plist: the VM APIs Kiri uses already exist in macOS 12, and the single macOS 13 API (VZLinuxRosettaDirectoryShare) is Apple-Silicon only. The change lowers the floor to 12.0, pins the binaries' minimum to 12.0 as well, and checks the Rosetta class exists before calling availability(), so M1 Macs on Monterey don't touch a class that isn't there. Docs updated to macOS 12+.

Fixes #315 (Ventura is covered too: 12 < 13).

How you tested it

cargo check — clean
cargo clippy --workspace — clean
cargo test --workspace — 394 passed, 2 failed (see note)
cargo xtask host --arch x86_64 — OK
kiri raw run --rm alpine echo hello — hello
Kiri.app built (169 MB, ad-hoc signed) and opened

Tested on: macOS 12.7.6, Intel MacBookPro9,2 (13-inch, 2012)

Note on the 2 test failures: both are seccomp timing tests (a_call_with_many_rules_compiles_in_linear_time_or_is_refused, a_profile_whose_libseccomp_tree_loops_compiles_quickly) that assert compilation under 50 ms; on this 2012 dual-core Mac they take 81–90 ms. I verified they fail the same way on unmodified main (pristine worktree), so they are pre-existing and unrelated to this change.

How you found it

  • I use Kiri and ran into this myself
  • I found it by reading the code or comparing with Docker
  • Someone else reported it (link the issue above)

AI tools used to write this change: yes — an AI assistant helped write the code changes and this PR text; all testing was done by me on my real Mac.

Checklist

  • I have at most 3 pull requests open on Kiri, this one included
  • cargo fmt, cargo clippy and the tests pass
  • It works on macOS, Windows and Linux, or the change only touches one of them

The 14.0 floor came only from the app plist: the VM APIs Kiri uses
already exist in macOS 12, and the single macOS 13 API
(VZLinuxRosettaDirectoryShare) is Apple-Silicon only. Lower the floor
to 12.0, pin the binaries' minimum to 12.0 as well, and check the
Rosetta class exists before calling availability().
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.

Support macOS 13 (Ventura): 0.2.1 x86_64 app requires macOS 14 even though the binary targets 10.12

1 participant