Files
UnrealEngineUWP/Engine/Source/Programs/UnrealBuildTool/Platform/IOS/IOSPlatformSDK.Versions.cs
adam kinge 47d47510ab Add a static library version check for iOS/tvOS and Mac. A BuildException will be thrown if a library is not built with the minimum supported Xcode (13.4.1 or earlier for 5.1).
#jira UE-151508
#review-21059319
#preflight 62cdaa973d7ef9abccf8215b

[CL 22112491 by adam kinge in ue5-main branch]
2022-09-21 10:23:44 -04:00

36 lines
883 B
C#

// Copyright Epic Games, Inc. All Rights Reserved.
using System;
using Microsoft.Extensions.Logging;
namespace UnrealBuildTool
{
internal class IOSPlatformSDK : ApplePlatformSDK
{
public IOSPlatformSDK(ILogger Logger)
: base(Logger)
{
}
protected override void GetValidSoftwareVersionRange(out string MinVersion, out string? MaxVersion)
{
// what is our min IOS version?
MinVersion = "15.0";
MaxVersion = null;
}
/// <summary>
/// The minimum Clang version that a static library can be built with
/// </summary>
public override Version MinimumStaticLibClangVersion
{
get
{
// return new Version("1200.00.32.29"); // UE 5.0 (Xcode 12.4)
// return new Version("1300.00.29.30"); // (old) UE 5.1 sets Xcode13.2.1 as minimum supported
return new Version("1316.0.21.2"); // UE 5.1 sets Xcode13.4 as minimum supported
}
}
}
}