public IPhoneProject(string languageName, ProjectCreateInformation info, XmlElement projectOptions) : base(languageName, info, projectOptions) { Init(); var mainNibAtt = projectOptions.Attributes ["MainNibFile"]; if (mainNibAtt != null) { this.mainNibFile = mainNibAtt.InnerText; } var ipadNibAtt = projectOptions.Attributes ["MainNibFileIPad"]; if (ipadNibAtt != null) { this.mainNibFileIPad = ipadNibAtt.InnerText; } var supportedDevicesAtt = projectOptions.Attributes ["SupportedDevices"]; if (supportedDevicesAtt != null) { this.supportedDevices = (TargetDevice)Enum.Parse(typeof(TargetDevice), supportedDevicesAtt.InnerText); } var sdkVersionAtt = projectOptions.Attributes ["SdkVersion"]; IPhoneSdkVersion?sdkVersion = null; if (sdkVersionAtt != null) { sdkVersion = IPhoneSdkVersion.Parse(sdkVersionAtt.InnerText); } FilePath binPath = (info != null)? info.BinPath : new FilePath("bin"); int confCount = Configurations.Count; for (int i = 0; i < confCount; i++) { var simConf = (IPhoneProjectConfiguration)Configurations[i]; simConf.Platform = PLAT_SIM; var deviceConf = (IPhoneProjectConfiguration)simConf.Clone(); deviceConf.Platform = PLAT_IPHONE; deviceConf.CodesignKey = DEV_CERT_PREFIX; Configurations.Add(deviceConf); deviceConf.MtouchSdkVersion = simConf.MtouchSdkVersion = sdkVersion ?? IPhoneSdkVersion.UseDefault; if (simConf.Name == "Debug") { simConf.MtouchDebug = deviceConf.MtouchDebug = true; } simConf.MtouchLink = MtouchLinkMode.None; simConf.OutputDirectory = binPath.Combine(simConf.Platform, simConf.Name); deviceConf.OutputDirectory = binPath.Combine(deviceConf.Platform, deviceConf.Name); simConf.SanitizeAppName(); deviceConf.SanitizeAppName(); } }
public static IEnumerable <IPhoneSimulatorTarget> GetSimulatorTargets(IPhoneSdkVersion minVersion, TargetDevice projSupportedDevices) { return(GetSimulatorTargets().Where(t => t.Supports(minVersion, projSupportedDevices))); }
public static bool SdkIsInstalled(IPhoneSdkVersion version) { return(SdkIsInstalled(version.ToString())); }
public IPhoneSimulatorTarget(TargetDevice device, IPhoneSdkVersion version) { this.Device = device; this.Version = version; }