Fork me on GitHub
#off-topic
<
2020-09-18
>
borkdude19:09:23

Does compiling a command line tool with a newer XCode version have any impact on being able to run that binary on older macOS versions?

kirill.salykin19:09:50

might be related to transition to arm in next mac os?

borkdude19:09:05

no, I'm just wondering about backward compatibility when I bump my XCode version in circleci's config

Jimmy Miller19:09:04

(I don't know how to do this, just know you can) You can set a minimal compatible version no matter which xcode you are on.

orestis05:09:46

You build against a target OS SDK, so definitely you can use a newer macOS to build for older Mac versions.

orestis05:09:24

The keyword here is IIRC “target” which is where you select the SDK you use.

Stefan06:09:17

Indeed they call it “deployment target” in Xcode. I would not hesitate to upgrade Xcode if the deployment target is set correctly.

borkdude06:09:25

But how to set this deployment target on CircleCi? I can only set the Xcode version in yaml

kirill.salykin06:09:05

Shouldnt there be some kind of xcode project configuration file?

kirill.salykin06:09:34

I am not much familiar with xcode stack, but quick googling mentions something like project.pbxproj?

kirill.salykin06:09:31

IPHONEOS_DEPLOYMENT_TARGET seems similar to what you are looking for?

kirill.salykin06:09:45

MACOSX_DEPLOYMENT_TARGET

borkdude06:09:36

Well I don’t build for IPhone and I do t have an XCode project. GraalVM just uses the C++ compiler that comes with it

borkdude06:09:04

I’ll check it out thanks

kirill.salykin06:09:20

maybe this helps?

borkdude06:09:33

Thanks, yes

borkdude19:09:38

E.g. compiling with XCode 12

JL20:09:19

one of the reasons I stay out of the mobile market ; ]

borkdude21:09:54

@thdm It says: min macOS to run xcode, but not min macOS on which the compiled target can run