public override bool Execute() { AppleSdkSettings.CheckChanged(); IPhoneSdks.Reload(); TargetArchitecture architectures; if (string.IsNullOrEmpty(TargetArchitectures) || !Enum.TryParse(TargetArchitectures, out architectures)) { architectures = TargetArchitecture.Default; } SdkIsSimulator = (architectures & (TargetArchitecture.i386 | TargetArchitecture.x86_64)) != 0; IsXcode8 = AppleSdkSettings.XcodeVersion.Major >= 8; if (EnsureAppleSdkRoot()) { switch (Framework) { case PlatformFramework.iOS: EnsureiOSSdkPath(); break; case PlatformFramework.TVOS: EnsureTVOSSdkPath(); break; case PlatformFramework.WatchOS: EnsureWatchSdkPath(); break; default: throw new InvalidOperationException(string.Format("Invalid framework: {0}", Framework)); } } EnsureXamarinSdkRoot(); Log.LogTaskName("DetectSdkLocations"); Log.LogTaskProperty("TargetFrameworkIdentifier", TargetFrameworkIdentifier); Log.LogTaskProperty("TargetArchitectures", TargetArchitectures); Log.LogTaskProperty("SdkVersion", SdkVersion); Log.LogTaskProperty("XamarinSdkRoot", XamarinSdkRoot); Log.LogTaskProperty("SdkRoot", SdkRoot); Log.LogTaskProperty("SdkDevPath", SdkDevPath); Log.LogTaskProperty("SdkUsrPath", SdkUsrPath); Log.LogTaskProperty("SdkPlatform", SdkPlatform); Log.LogTaskProperty("SdkIsSimulator", SdkIsSimulator); return(!Log.HasLoggedErrors); }
public static void CheckInfoCaches() { AppleSdkSettings.CheckChanged(); XamMac.CheckCaches(); }
public static void CheckInfoCaches() { AppleSdkSettings.CheckChanged(); MonoTouch.CheckCaches(); }