what's a sane value of MACOSX_DEPLOYMENT_TARGET
in 2020 for command line tools?
and what's the default value when you use XCode 12 on CircleCI?
I suspect most of us here aren’t familiar enough with macOS deployments to answer those sorts of Qs. You might be able to get a decent answer via zendesk support
I got it working with 10.11
10.10 failed
so 10.11 seems the minimum viable version for GraalVM
tl;dr 10.13 should be fine since 10.12 is EOL
@glenjamin I have gotten emails about the Xcode version:
Hi there,
We’re reaching out to you to let you know that we have deprecated the following macOS images on CircleCI and will be removing them from our platform:
Xcode 9.3.1 - deprecated, removal date: 28 September, 2020
Xcode 9.0.1 - deprecated, removal date: 5 October, 2020
In the last two weeks, you have used the Xcode 9.3.1 or 9.0.1 images on the following project(s):
[<https://github.com/borkdude/clj-kondo>, <https://github.com/borkdude/sci>, <https://github.com/borkdude/babashka>]
but I think it might be nice information to have how to build for older macOS / iOS versions somewhere, so people know it's safe to just upgrade
ah, is that via build flags or something?
mac:
macos:
xcode: "12.0.0"
environment:
MACOSX_DEPLOYMENT_TARGET: 10.13 # 10.12 is EOL
oh cool
it looks like we’re keeping 9.4.1 available for now as well
but the newer you go, the longer it should hang around
I’ve passed that along to our macos team
:thumbsup:
from our chief mac support engineer: > adam [15:15] > It’s very project dependant > adam [15:17] > Deployment target setting in that way would only work for Xcode projects and really it should be set in the xcode project itself
@glenjamin FWIW I'm not using an Xcode project, but building a binary with GraalVM native-image which uses the C++ compiler from XCode (I think). With the above settings, I find this:
Load command 9
cmd LC_VERSION_MIN_MACOSX
cmdsize 16
version 10.13
sdk 10.15.6
with
otool -l bb
The previous one (built using old xcode setting in circleci, no macos deployment target flag):
Load command 9
cmd LC_VERSION_MIN_MACOSX
cmdsize 16
version 10.12
sdk 10.12
:mindblown:
when upgrading I got a min version of 10.15
which inspired my to go check on this
anyway, it works for me ;)
@lee Maybe this is something we should document in our clj-graal repo
Ya, @borkdude, I think you are right.
You’ve done the hard part, I can write up the tip if you like.
I would not be sad if you did that :)