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()); }