From 566a7a4dadf64231176dc843b58898f0798a9773 Mon Sep 17 00:00:00 2001 From: Sebastien Pouliot Date: Fri, 24 Feb 2017 03:17:03 -0500 Subject: [PATCH] [mmp] Map macOS 10.12.4 SDK with Xcode 8.3 (#1759) This should stop errors like below to happen on wrench ``` Xamarin.Bundler.MonoMacException: The type 'AVFoundation.IAVContentKeyRecipient' (used as a parameter in AVFoundation.AVContentKeySession.Add) is not available in macOS 10.12.2 (it was introduced in macOS 10.12.4). Please build with a newer macOS SDK (usually done by using the most recent version of Xcode). ``` --- tools/mmp/driver.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/mmp/driver.cs b/tools/mmp/driver.cs index 89745380dd..0bd150be23 100644 --- a/tools/mmp/driver.cs +++ b/tools/mmp/driver.cs @@ -589,6 +589,8 @@ namespace Xamarin.Bundler { static Version MutateSDKVersionToPointRelease (Version rv) { if (rv.Major == 10 && (rv.Revision == 0 || rv.Revision == -1)) { + if (rv.Minor == 12 && XcodeVersion >= new Version (8, 3)) + return new Version (rv.Major, rv.Minor, 4); if (rv.Minor == 12 && XcodeVersion >= new Version (8, 2)) return new Version (rv.Major, rv.Minor, 2); if (rv.Minor == 12 && XcodeVersion >= new Version (8, 1))