Skip to content

Use the Darwin kernel version for the macOS minimum check - #2740

Open
akenmorris wants to merge 1 commit into
masterfrom
amorris/macos-version-check
Open

akenmorris wants to merge 1 commit into
masterfrom
amorris/macos-version-check

Conversation

@akenmorris

Copy link
Copy Markdown
Contributor

The signed 6.8.0 and 6.8.1 mac releases refuse to start (Studio and the `shapeworks` CLI) with "ShapeWorks requires macOS 14 or later. This Mac is running macOS 10.16." on every Mac. The signing step restamps all binaries with `vtool -set-build-version macos 10.13 10.13`, and macOS reports the product version as 10.16 to any binary built against an SDK older than 11, so `kern.osproductversion` can't be trusted.

This reads `kern.osrelease` (the Darwin version, which the compatibility shim doesn't touch) and maps it to the macOS major version. The signing script is being fixed separately so it stops stamping 10.13.

macOS reports its product version as "10.16" to any binary whose
LC_BUILD_VERSION names an SDK older than 11.  The release signing step
restamps every binary with SDK 10.13, so the signed 6.8.0 and 6.8.1
Studio and shapeworks CLI refused to start on every Mac.

Read kern.osrelease instead, which the compatibility shim does not touch,
and map the Darwin version to the macOS major version.

This branch has not been deployed

No deployments
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