-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rust now requires MacOS > 10.12 #56
Comments
Is there a fix for this, because no combinations of sdks for the apple targets work for me right now. |
For myself, I did a "hacky" workaround here - strowk/tisq@afacd74 Basically I have "cross" folder with cloned cross, which has a problematic file under this subpath: "docker/cross-toolchains/docker/darwin.sh". I override this file with that one - https://github.com/strowk/tisq/blob/afacd74aecd639ca4790950352c4e41b008fcf7f/patched-darwin.sh#L52 The only difference is in line 52 there TARGET_DIR=/opt/osxcross UNATTENDED=yes OSX_VERSION_MIN=10.7 ./build.sh is replaced by TARGET_DIR=/opt/osxcross UNATTENDED=yes OSX_VERSION_MIN=10.12 ./build.sh # this line is changed 10.7 to 10.12 Result of this is successful build, though obviously the binary would not work anymore for MacOS < 10.12 (which is not officially supported by Apple themselves anyway). I suppose alternative to this could be pinning Rust toolchain to something before 1.74 , if old versions of OS are more important for you than new versions of language. |
Thank you for your explanation. |
See
https://blog.rust-lang.org/2023/09/25/Increasing-Apple-Version-Requirements.html
This:
cross-toolchains/docker/darwin.sh
Line 52 in 83b2866
needs to be upped to 10.12 in at least some targets, otherwise error looking like this:
would be happening (this is from build for x86_64).
Simply upping the value to 10.12 would be more strict than what Rust seems to require now though.
There was no issue for me on aarch64-apple-darwin, and that is in alignment with blog post linked above, as that target is not mentioned as affected by change (aarch64-apple-ios is mentioned, but not darwin).
The text was updated successfully, but these errors were encountered: