Wrong macOS version according to nix-info

We’re having issues that might be related to the macOS version nix is running. According to nix-info, I get:

 - system: `"x86_64-darwin"`
 - host os: `Darwin 23.5.0, macOS 10.16`
 - multi-user?: `yes`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.23.3`
 - channels(root): `"nixpkgs"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixpkgs`

The kernel indeed matches my system, according to uname, but my sw_vers says something different as for the OS version:

ProductName:		macOS
ProductVersion:		14.5
BuildVersion:		23F79

Maybe the problem is elsewhere, but we see the following issue in our builds that prompts this investigation:

ld: warning: object file (x.o) was built for newer macOS version (14.0) than being linked (11.0)

So, is this a real problem? Is there a way to get nix to set up macOS 14? Thanks

As far as the version difference goes, I think you’re just seeing the behavior described in:

In general, nixpkgs uses the oldest sdk versions we can get away with since this maximizes compatibility for old systems.

As to the warning message: afaik this isn’t an issue if it isn’t causing you trouble.

1 Like

We’re having trouble, but might not be related to that. Many thanks for the clarifications!

What kind of trouble? Crashes?

Afaik it’s just a warning and you’d be getting errors if it were a problem, but others (maybe @emily @toonn and @reckenrode) may be able to speak with more certainty.

I think you’re right. The problem might be elsewhere, because locally it works fine even with those warnings.