From d7fc0805c8819f24cf30a92a002a95d955efda9f Mon Sep 17 00:00:00 2001 From: bruvzg <7645683+bruvzg@users.noreply.github.com> Date: Tue, 10 Oct 2023 09:14:59 +0300 Subject: [PATCH] [iOS] Fix build on Xcode 14 and older. (cherry picked from commit 09d51208651fde2a504df4af771c3231eb88094c) --- .../godot_ios.xcodeproj/project.pbxproj | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/misc/dist/ios_xcode/godot_ios.xcodeproj/project.pbxproj b/misc/dist/ios_xcode/godot_ios.xcodeproj/project.pbxproj index cc2b1c64f88..27bc2844d56 100644 --- a/misc/dist/ios_xcode/godot_ios.xcodeproj/project.pbxproj +++ b/misc/dist/ios_xcode/godot_ios.xcodeproj/project.pbxproj @@ -255,7 +255,13 @@ GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; IPHONEOS_DEPLOYMENT_TARGET = 12.0; - OTHER_LDFLAGS = "-ld_classic $linker_flags"; + "LD_CLASSIC_1000" = ""; + "LD_CLASSIC_1100" = ""; + "LD_CLASSIC_1200" = ""; + "LD_CLASSIC_1300" = ""; + "LD_CLASSIC_1400" = ""; + "LD_CLASSIC_1500" = "-ld_classic"; + OTHER_LDFLAGS = "$(LD_CLASSIC_$(XCODE_VERSION_MAJOR)) $linker_flags"; SDKROOT = iphoneos; TARGETED_DEVICE_FAMILY = "$targeted_device_family"; }; @@ -294,7 +300,13 @@ GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; IPHONEOS_DEPLOYMENT_TARGET = 12.0; - OTHER_LDFLAGS = "-ld_classic $linker_flags"; + "LD_CLASSIC_1000" = ""; + "LD_CLASSIC_1100" = ""; + "LD_CLASSIC_1200" = ""; + "LD_CLASSIC_1300" = ""; + "LD_CLASSIC_1400" = ""; + "LD_CLASSIC_1500" = "-ld_classic"; + OTHER_LDFLAGS = "$(LD_CLASSIC_$(XCODE_VERSION_MAJOR)) $linker_flags"; SDKROOT = iphoneos; TARGETED_DEVICE_FAMILY = "$targeted_device_family"; VALIDATE_PRODUCT = YES;