Skip to content

feat(macos): target macOS 15 (Sequoia) as the minimum deployment version - #62

Merged
mcoliver merged 1 commit into
mainfrom
feat/macos-15-deployment-target
Sep 30, 2026
Merged

mcoliver merged 1 commit into
mainfrom
feat/macos-15-deployment-target

Conversation

@mcoliver

@mcoliver mcoliver commented Sep 29, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Makes macOS 15 (Sequoia) the real minimum for UTV. Closes #61.

Today the minimum is accidental. CMAKE_OSX_DEPLOYMENT_TARGET is never set, so clang uses the build host's SDK version. Every binary built on the macos-26 runners is stamped minos 26.0, while Info.plist claims 11.0. On Sequoia, dyld refuses to load the app.

Changes

  • CMakeLists.txt: CMAKE_OSX_DEPLOYMENT_TARGET=15.0, set as a cache variable before PROJECT() so it can be overridden with -D.
  • Dependencies: rv_create_std_deps_vars.cmake, pyimgui.cmake and pyimplot.cmake pass the deployment target to dependencies built from source (they already passed CMAKE_OSX_ARCHITECTURES).
  • cxx_clang_defaults.cmake: -Werror=unguarded-availability-new on Apple. Any API newer than the target without an @available() guard is now a compile error, instead of a crash at runtime on older macOS.
  • Info.plist: LSMinimumSystemVersion in the UTV and UTVLinkLauncher plists now comes from ${CMAKE_OSX_DEPLOYMENT_TARGET}. Removed the release workflow's PlistBuddy override that forced it to 11.0.0.
  • src/build/check_macos_min_version.py: new check. It fails if any Mach-O file in the bundle has an LC_BUILD_VERSION minos higher than the declared LSMinimumSystemVersion. It runs after the macOS build in branch-build.yml, dev-build.yml and release.yml.
  • Cask: depends_on macos: ">= :sequoia". The README install section now says macOS 15+.

Verification (local, macOS 27 host, Xcode SDK 27)

  • Full from-scratch build with the 15.0 target: succeeds with no unguarded-availability errors anywhere in the tree. That covers Metal, AVFoundation/ProRes RAW, VideoToolbox, RED Metal and the launchers.
  • check_macos_min_version.py on the result: OK: all 126 Mach-O binaries ... support macOS 15.0. UTV-bin reports minos 15.0.
  • The same script against the current 2026.x release: correctly fails, listing 87 binaries at minos 26.0.
  • On the 15.0 build: ctest passes (118/118), utvio conversion works, and the GUI launches cleanly.
  • Third-party libraries were already fine: bundled vendor libs are minos ≤ 14.0, and Homebrew's Qt 6.11 is minos 14.0.

Not yet verified (needs a human or a macOS 15 machine)

  • Launch and basic playback on an actual macOS 15 machine, Apple Silicon (or a VM)
  • Metal video output / EDR, ProRes and ProRes RAW decode, hardware decode, RED
  • brew install --cask utv on Sequoia (the Homebrew runtime dependencies resolve to sequoia bottles)

CMAKE_OSX_DEPLOYMENT_TARGET was never set, so clang defaulted to the build
host's SDK version and every UTV binary built on macos-26 runners required
macOS 26, while Info.plist claimed 11.0.

- Set CMAKE_OSX_DEPLOYMENT_TARGET=15.0 (cache var, before PROJECT()) and
  pass it to ExternalProject dependencies built from source.
- Make -Wunguarded-availability-new an error on Apple so APIs newer than
  the deployment target cannot slip in without an @available() guard.
- Derive LSMinimumSystemVersion in UTV and UTVLinkLauncher Info.plist from
  the deployment target; drop the release workflow's 11.0.0 override.
- Add src/build/check_macos_min_version.py and run it after every macOS CI
  build to fail if any bundled Mach-O requires a newer macOS than declared.
- Cask: depends_on macos ">= :sequoia"; README notes macOS 15+.

Closes #61

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Signed-off-by: Michael Oliver <mcoliver@gmail.com>
@mcoliver
mcoliver marked this pull request as ready for review September 30, 2026 15:26
@mcoliver
mcoliver merged commit 35f2718 into main Sep 30, 2026
9 checks passed
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.

feat(macos): support macOS 15 (Sequoia) as minimum deployment target

1 participant