Fork me on GitHub
#circleci
<
2020-09-22
>
borkdude07:09:34

what's a sane value of MACOSX_DEPLOYMENT_TARGET in 2020 for command line tools?

borkdude07:09:50

and what's the default value when you use XCode 12 on CircleCI?

glenjamin10:09:13

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

borkdude10:09:01

I got it working with 10.11

borkdude10:09:06

10.10 failed

borkdude10:09:17

so 10.11 seems the minimum viable version for GraalVM

borkdude11:09:20

tl;dr 10.13 should be fine since 10.12 is EOL

👍 3
borkdude14:09:17

@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):

[, , ]

borkdude14:09:43

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

glenjamin14:09:02

ah, is that via build flags or something?

borkdude14:09:26

mac:
    macos:
      xcode: "12.0.0"
    environment:
      MACOSX_DEPLOYMENT_TARGET: 10.13 # 10.12 is EOL

glenjamin14:09:48

it looks like we’re keeping 9.4.1 available for now as well

glenjamin14:09:58

but the newer you go, the longer it should hang around

glenjamin14:09:39

I’ve passed that along to our macos team

glenjamin14:09:34

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

borkdude14:09:17

@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

borkdude14:09:15

with

otool -l bb

borkdude14:09:11

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

borkdude14:09:37

when upgrading I got a min version of 10.15 which inspired my to go check on this

borkdude14:09:58

anyway, it works for me ;)

borkdude15:09:35

@lee Maybe this is something we should document in our clj-graal repo

lread15:09:57

Ya, @borkdude, I think you are right.

lread15:09:27

You’ve done the hard part, I can write up the tip if you like.

borkdude15:09:23

I would not be sad if you did that :)

simple_smile 3