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 override bool Execute() { AppleSdkSettings.Init(); TargetArchitecture architectures; if (string.IsNullOrEmpty(TargetArchitectures) || !Enum.TryParse(TargetArchitectures, out architectures)) { architectures = TargetArchitecture.Default; } SdkIsSimulator = (architectures & (TargetArchitecture.i386 | TargetArchitecture.x86_64)) != 0; return(base.Execute()); }
public override bool Execute() { AppleSdkSettings.Init(); 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 ApplePlatform.iOS: EnsureiOSSdkPath(); break; case ApplePlatform.TVOS: EnsureTVOSSdkPath(); break; case ApplePlatform.WatchOS: EnsureWatchSdkPath(); break; default: throw new InvalidOperationException(string.Format("Invalid framework: {0}", Framework)); } } EnsureXamarinSdkRoot(); return(!Log.HasLoggedErrors); }
public override bool Execute() { AppleSdkSettings.Init(); TargetArchitecture architectures; if (string.IsNullOrEmpty(TargetArchitectures) || !Enum.TryParse(TargetArchitectures, out architectures)) { architectures = TargetArchitecture.Default; } if (!string.IsNullOrEmpty(IsDotNetSimulatorBuild)) { SdkIsSimulator = string.Equals(IsDotNetSimulatorBuild, "true", StringComparison.OrdinalIgnoreCase); } else { SdkIsSimulator = (architectures & (TargetArchitecture.i386 | TargetArchitecture.x86_64)) != 0; } return(base.Execute()); }
public static void CheckInfoCaches() { AppleSdkSettings.CheckChanged(); XamMac.CheckCaches(); }
public static void CheckInfoCaches() { AppleSdkSettings.CheckChanged(); MonoTouch.CheckCaches(); }