void EnsureSdkPath() { var sdkVersion = MacOSXSdkVersion.GetDefault(MacOSXSdks.Native); if (!MacOSXSdks.Native.SdkIsInstalled(sdkVersion)) { Log.LogError(MSBStrings.E0083); return; } SdkVersion = sdkVersion.ToString(); SdkRoot = MacOSXSdks.Native.GetSdkPath(sdkVersion); if (string.IsNullOrEmpty(SdkRoot)) { Log.LogError(MSBStrings.E0084, SdkVersion, SdkRoot); } SdkUsrPath = DirExists("SDK usr directory", Path.Combine(MacOSXSdks.Native.DeveloperRoot, "usr")); if (string.IsNullOrEmpty(SdkUsrPath)) { Log.LogError(MSBStrings.E0085, SdkVersion, SdkRoot); } SdkBinPath = DirExists("SDK bin directory", Path.Combine(SdkUsrPath, "bin")); if (string.IsNullOrEmpty(SdkBinPath)) { Log.LogError(MSBStrings.E0032); } }
void EnsureSdkPath() { var sdkVersion = MacOSXSdkVersion.GetDefault(MacOSXSdks.Native); if (!MacOSXSdks.Native.SdkIsInstalled(sdkVersion)) { Log.LogError("The Apple macOS SDK is not installed."); return; } SdkVersion = sdkVersion.ToString(); SdkRoot = MacOSXSdks.Native.GetSdkPath(sdkVersion); if (string.IsNullOrEmpty(SdkRoot)) { Log.LogError("Could not locate the macOS '{0}' SDK at path '{1}'", SdkVersion, SdkRoot); } SdkUsrPath = DirExists("SDK usr directory", Path.Combine(MacOSXSdks.Native.DeveloperRoot, "usr")); if (string.IsNullOrEmpty(SdkUsrPath)) { Log.LogError("Could not locate the macOS '{0}' SDK usr path at '{1}'", SdkVersion, SdkRoot); } SdkBinPath = DirExists("SDK bin directory", Path.Combine(SdkUsrPath, "bin")); if (string.IsNullOrEmpty(SdkBinPath)) { Log.LogError("Could not locate SDK bin directory"); } }
protected override IAppleSdkVersion GetDefaultSdkVersion() { return(MacOSXSdkVersion.GetDefault(CurrentSdk)); }