Skip to content

Commit

Permalink
fix(ios): match deployment target when on 0.76 (#2196)
Browse files Browse the repository at this point in the history
  • Loading branch information
tido64 authored Aug 23, 2024
1 parent 6ff3f58 commit 69225c5
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion ios/test_app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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),
},
Expand Down

0 comments on commit 69225c5

Please sign in to comment.