[sdks] Explicitly set version of the mac/ios/watchos/tvos platform SDKs
commitc615501f72a0dd00414565db3c2d19f3f7635a25
authorAlexander Köplinger <alex.koeplinger@outlook.com>
Mon, 27 May 2019 15:50:35 +0000 (27 17:50 +0200)
committerAlexander Köplinger <alex.koeplinger@outlook.com>
Mon, 27 May 2019 16:09:28 +0000 (27 18:09 +0200)
tree18ec62fe55ff6981fc5ee327f762496ab8356fa5
parent6d59480417290684ceaec040c280f37596acc437
[sdks] Explicitly set version of the mac/ios/watchos/tvos platform SDKs

Otherwise the Xcode linker tries to guess the version from the path,
and since we use Xcode101.app it'd use sdk=101 as the version which is wrong.

By explicitly specifying e.g. `$(XCODE_DIR)/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk`
as the sysroot it correctly guesses sdk=12.1 instead.

See also https://github.com/xamarin/xamarin-macios/commit/834c0a9fd7062c0c25011721fd7d524b8a60b41e
scripts/ci/run-jenkins.sh
sdks/builds/mac.mk
sdks/versions.mk