td
td copied to clipboard
Unable to set minimum supported macOS version in cmake?
Hi. I don't see a clear option in cmake files to set -mmacos-version-min
. It's supported for other Apple platforms
As for now, clang will decide about the version on it's own. For Xcode 14.2 (AppleClang 14.0.0.14000029
) and macOS 12.6.5 build machine I'm getting a TDLib that's intended to be used on MacOS 12.6+
$ otool -l lib/libtdjson_static.a | grep -A5 -B1 -m1 "LC_BUILD_VERSION"
Load command 1
cmd LC_BUILD_VERSION
cmdsize 24
platform 1
minos 12.6
sdk 13.1
ntools 0
I've described how the parameter can be changed with custom build script for other Apple platforms here: https://github.com/tdlib/td/pull/2405