bool EnsureAppleSdkRoot()
        {
            if (!CurrentSdk.IsInstalled)
            {
                string ideSdkPath;
                if (string.IsNullOrEmpty(SessionId))
                {
                    // SessionId is only and always defined on windows.
                    // We can't check 'Environment.OSVersion.Platform' since the base tasks are always executed on the Mac.
                    ideSdkPath = "(Project > SDK Locations > Apple > Apple SDK)";
                }
                else
                {
                    ideSdkPath = "(Tools > Options > Xamarin > iOS Settings > Apple SDK)";
                }
                Log.LogError("Could not find a valid Xcode app bundle at '{0}'. Please update your Apple SDK location in Visual Studio's preferences {1}.", AppleSdkSettings.InvalidDeveloperRoot, ideSdkPath);
                return(false);
            }
            Log.LogMessage(MessageImportance.Low, "DeveloperRoot: {0}", CurrentSdk.DeveloperRoot);
            Log.LogMessage(MessageImportance.Low, "DevicePlatform: {0}", CurrentSdk.DevicePlatform);
            Log.LogMessage(MessageImportance.Low, "GetPlatformPath: {0}", CurrentSdk.GetPlatformPath(false));

            SdkDevPath = CurrentSdk.DeveloperRoot;
            if (string.IsNullOrEmpty(SdkDevPath))
            {
                Log.LogError("Could not find valid a usable Xcode developer path");
                return(false);
            }
            return(true);
        }
        void EnsureAppleSdkRoot()
        {
            if (!CurrentSdk.IsInstalled)
            {
                Log.LogError("  Could not find a usable Xcode app bundle in {0}", CurrentSdk.DeveloperRoot);
            }
            else
            {
                Log.LogMessage(MessageImportance.Low, "  DeveloperRoot: {0}", CurrentSdk.DeveloperRoot);
                Log.LogMessage(MessageImportance.Low, "  DevicePlatform: {0}", CurrentSdk.DevicePlatform);
                Log.LogMessage(MessageImportance.Low, "  GetPlatformPath: {0}", CurrentSdk.GetPlatformPath(false));

                SdkDevPath = CurrentSdk.DeveloperRoot;
                if (string.IsNullOrEmpty(SdkDevPath))
                {
                    Log.LogError("  Could not find valid a usable Xcode developer path");
                }
            }
        }