Skip to content

Commit 69225c5

Browse files
authored
fix(ios): match deployment target when on 0.76 (#2196)
1 parent 6ff3f58 commit 69225c5

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

ios/test_app.rb

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,10 +326,19 @@ def make_project!(xcodeproj, project_root, target_platform, options)
326326
app_project.save
327327

328328
config = app_project.build_configurations[0]
329+
330+
# TODO: Deployment target is bumped in 4.0. We should remove this block then.
331+
ios_deployment_target =
332+
if rn_version >= v(0, 76, 0)
333+
'15.1'
334+
else
335+
config.resolve_build_setting(IPHONEOS_DEPLOYMENT_TARGET)
336+
end
337+
329338
{
330339
:xcodeproj_path => xcodeproj_dst,
331340
:platforms => {
332-
:ios => config.resolve_build_setting(IPHONEOS_DEPLOYMENT_TARGET),
341+
:ios => ios_deployment_target,
333342
:macos => config.resolve_build_setting(MACOSX_DEPLOYMENT_TARGET),
334343
:visionos => config.resolve_build_setting(XROS_DEPLOYMENT_TARGET),
335344
},

0 commit comments

Comments
 (0)