Skip to content

Commit 19b14f6

Browse files
committed
Added API to get the recommended Xcode version value
1 parent 39ea45b commit 19b14f6

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Xamarin.MacDev/MonoTouchSdk.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,17 @@ static string GetPlatformKey (PlatformName platform)
302302
}
303303
}
304304

305+
public Version RecommendedXcodeVersion {
306+
get {
307+
PString version;
308+
309+
if (!versions.TryGetValue ("RecommendedXcodeVersion", out version))
310+
return new Version (8, 0);
311+
312+
return System.Version.Parse (version.Value);
313+
}
314+
}
315+
305316
public IList<IPhoneSdkVersion> GetKnownSdkVersions (PlatformName platform)
306317
{
307318
var list = new List<IPhoneSdkVersion> ();

0 commit comments

Comments
 (0)