This repository was archived by the owner on Nov 16, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,21 @@ require_relative '../node_modules/@react-native-community/cli-platform-ios/nativ
4
4
platform :ios , min_ios_version_supported
5
5
install! 'cocoapods' , :deterministic_uuids => false
6
6
7
+ # Force pods to match minimum iOS version for React Native
8
+ # Fixes build issue on Xcode Cloud where some pods
9
+ # Use iOS 12 calls despite being set as iOS 11
10
+ def __apply_Xcode_14_3_RC_post_install_workaround ( installer )
11
+ installer . pods_project . targets . each do |target |
12
+ target . build_configurations . each do |config |
13
+ current_target = config . build_settings [ 'IPHONEOS_DEPLOYMENT_TARGET' ]
14
+ minimum_target = min_ios_version_supported
15
+ if current_target . to_f < minimum_target . to_f
16
+ config . build_settings [ 'IPHONEOS_DEPLOYMENT_TARGET' ] = minimum_target
17
+ end
18
+ end
19
+ end
20
+ end
21
+
7
22
target 'LearnReactNative' do
8
23
config = use_native_modules!
9
24
@@ -33,6 +48,7 @@ target 'LearnReactNative' do
33
48
post_install do |installer |
34
49
react_native_post_install ( installer )
35
50
__apply_Xcode_12_5_M1_post_install_workaround ( installer )
51
+ __apply_Xcode_14_3_RC_post_install_workaround ( installer )
36
52
end
37
53
end
38
54
Original file line number Diff line number Diff line change @@ -640,6 +640,6 @@ SPEC CHECKSUMS:
640
640
Yoga: 79dd7410de6f8ad73a77c868d3d368843f0c93e0
641
641
YogaKit: f782866e155069a2cca2517aafea43200b01fd5a
642
642
643
- PODFILE CHECKSUM: cb6e62e6487171d1eb6538cf012f783233fac94d
643
+ PODFILE CHECKSUM: b16880a4841e127a721876a9fbc673238de76d94
644
644
645
645
COCOAPODS: 1.11.3
You can’t perform that action at this time.
0 commit comments