Compile error on VSCode? "Undefined symbols for architecture x86_64"

Just trying to get OF setup using VSCode and when I run the build DEBUG command the terminal spits out this nasty error. I am a complete newb to OF… any ideas what the issue might be?

Undefined symbols for architecture x86_64:
  "___isPlatformVersionAtLeast", referenced from:
      _singleipconnect in curl.a(libcurl_la-connect.o)
      _darwinssl_connect_common in curl.a(libcurl_la-darwinssl.o)
      _darwinssl_version_from_curl in curl.a(libcurl_la-darwinssl.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [bin/DEGREE_Countdown] Error 1
make: *** [Release] Error 2
The terminal process "/bin/bash '-c', 'make -j -s 2>&1 && make RunRelease'" terminated with exit code: 2.

Hi!

So this seems to be an issue with lib curl which when built on macOS 11.0 ( which we need to do for arm64 ), relies on calls that only exist in Xcode 11 and newer. ( see the discussion here )

The fix is to install Xcode 11 or newer.

If you can’t do that another solution would be to grab the curl folder from the 0.11.0 release ( in libs ) and replace it in the 0.11.1 or 0.11.2 libs folder.

A fix which would work for both macOS 11.0 and older Xcode versions would require patching curl.

Hope that helps!
Theo

ahh thanks theo! Never would have figured this out ahah. I’ll update to xCode 11 and see if things work