From 69225c5c04749a2f400e6a7640117d92d3647830 Mon Sep 17 00:00:00 2001 From: Tommy Nguyen <4123478+tido64@users.noreply.github.com> Date: Fri, 23 Aug 2024 19:39:49 +0200 Subject: [PATCH] fix(ios): match deployment target when on 0.76 (#2196) --- ios/test_app.rb | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/ios/test_app.rb b/ios/test_app.rb index c6662e8c8..bdcba1e07 100644 --- a/ios/test_app.rb +++ b/ios/test_app.rb @@ -326,10 +326,19 @@ def make_project!(xcodeproj, project_root, target_platform, options) app_project.save config = app_project.build_configurations[0] + + # TODO: Deployment target is bumped in 4.0. We should remove this block then. + ios_deployment_target = + if rn_version >= v(0, 76, 0) + '15.1' + else + config.resolve_build_setting(IPHONEOS_DEPLOYMENT_TARGET) + end + { :xcodeproj_path => xcodeproj_dst, :platforms => { - :ios => config.resolve_build_setting(IPHONEOS_DEPLOYMENT_TARGET), + :ios => ios_deployment_target, :macos => config.resolve_build_setting(MACOSX_DEPLOYMENT_TARGET), :visionos => config.resolve_build_setting(XROS_DEPLOYMENT_TARGET), },