Repository navigation
Use the Darwin kernel version for the macOS minimum check - #2740
Open
akenmorris wants to merge 1 commit into
Open
akenmorris wants to merge 1 commit into
akenmorris wants to merge 1 commit into
Conversation
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
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.
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.