Install on MacOS detected incorrect OS X version

Hello! I just did my very first install of Dfinity onto my MacBook, running macOS Catalina Version 10.15.6.

But the Dfinity installer incorrectly detected an older version number. Here is the shell output:

warn: Detected OS X platform older than 10.13 (High Sierra)
warn: Not forcing TLS v1.2, this is potentially less secure
info: Version found: 0.6.9
info: Creating uninstall script in ~/.cache/dfinity
info: uninstall path=/Users/johnny/.cache/dfinity/uninstall.sh
info: Checking for latest release...
warn: Detected OS X platform older than 10.13 (High Sierra)
warn: Not forcing TLS v1.2, this is potentially less secure
Will install in: /usr/local/bin
info: Installed /usr/local/bin/dfx

So, I am not so happy to hear that something “potentially less secure” was executing on my machine. But also wondering if communications with be less secure from this point on, as I use the Dfinity SDK.

Please advise. Cheers!

Hi Johnny,

version 0.6.9 is actually the most up to date version of the SDK. The warning you see comes from your operating system not being the newest one around. As you can see its says

Detected OS X platform older than 10.13

I‘m assuming that due to your „outdated“ operating system, the installer isn‘t able to use TLS v1.2 to download the files.

Thanks for the quick response.

No, I meant that the installer detected the incorrect version of my OS. Mine is 10.15, which is not “older than 10.3”.

Ahh sorry, my bad! Let‘s see if @hansl or @stanley.jones have any ideas

No idea. We updated the installer to be compatible with Big Sur recently (which is 11.0). Maybe that has something to do with it. Let me check.

1 Like

For reference the installer should be compatible with 10.15.6. That message is an error. And the TLS message is weird and should not happen either.

2 Likes

Thank you for looking into it. When you say “that message is an error”, do you mean “bug”?

Typically, I would just move on. But because the message specifically calls out TLS and security, it would be good to get to the bottom of this.

Dfinity is supposed to be “hack-proof” (as Dom and the marketing like to tout). But problems like this make people suspicious. :face_with_raised_eyebrow:

Yes, I meant it was a bug.

What does sw_vers -productVersion (And plain sw_vers) shows for you in a terminal?

10.15.6

Field Value
ProductName: Mac OS X
ProductVersion: 10.15.6
BuildVersion: 19G2021

My machine:

ProductName: Mac OS X
ProductVersion: 10.15.5

I did see the same warning message about detecting the OS and TLS. However, I did not see any errors related to these warnings when running the tutorial examples so far.

1 Like

I have the exact same strange warning as my Mac is also up to date.

So turns out they changed the sw_vers output somehow. I just merged a fix for it (it was stuck on CI for a few days, sorry).

Can you please try again?

2 Likes

Worked for me. Thanks @hansl .

1 Like

Is there an uninstall to do, before reinstalling? Don’t want to get my system into an inconsistent state.

You can run ~/.cache/dfinity/uninstall.sh

1 Like

Yup - looks clean this time. Thanks!

info: Version found: 0.6.10
info: Creating uninstall script in ~/.cache/dfinity
info: uninstall path=/Users/johnny/.cache/dfinity/uninstall.sh
info: Checking for latest release...
Will install in: /usr/local/bin
info: Installed /usr/local/bin/dfx
1 Like