diff --git a/Source/LuaMachine/LuaMachine.Build.cs b/Source/LuaMachine/LuaMachine.Build.cs index c2ce0df..c617fd0 100644 --- a/Source/LuaMachine/LuaMachine.Build.cs +++ b/Source/LuaMachine/LuaMachine.Build.cs @@ -73,7 +73,9 @@ public LuaMachine(ReadOnlyTargetRules Target) : base(Target) else if (Target.Platform == UnrealTargetPlatform.Mac) { - PublicAdditionalLibraries.Add(System.IO.Path.Combine(ThirdPartyDirectory, "x64", "liblua53_mac.a")); + PublicAdditionalLibraries.Add(Target.Architecture == UnrealArch.X64 + ? System.IO.Path.Combine(ThirdPartyDirectory, "x64", "liblua53_mac.a") + : System.IO.Path.Combine(ThirdPartyDirectory, "ARM64", "liblua53_mac.a")); } else if (Target.Platform == UnrealTargetPlatform.Linux)