Skip to content
This repository was archived by the owner on Nov 16, 2023. It is now read-only.

Commit 0158547

Browse files
committed
Workaround for Xcode 13.4 RC bug
1 parent f1d6811 commit 0158547

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

ios/Podfile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,21 @@ require_relative '../node_modules/@react-native-community/cli-platform-ios/nativ
44
platform :ios, min_ios_version_supported
55
install! 'cocoapods', :deterministic_uuids => false
66

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+
722
target 'LearnReactNative' do
823
config = use_native_modules!
924

@@ -33,6 +48,7 @@ target 'LearnReactNative' do
3348
post_install do |installer|
3449
react_native_post_install(installer)
3550
__apply_Xcode_12_5_M1_post_install_workaround(installer)
51+
__apply_Xcode_14_3_RC_post_install_workaround(installer)
3652
end
3753
end
3854

ios/Podfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -640,6 +640,6 @@ SPEC CHECKSUMS:
640640
Yoga: 79dd7410de6f8ad73a77c868d3d368843f0c93e0
641641
YogaKit: f782866e155069a2cca2517aafea43200b01fd5a
642642

643-
PODFILE CHECKSUM: cb6e62e6487171d1eb6538cf012f783233fac94d
643+
PODFILE CHECKSUM: b16880a4841e127a721876a9fbc673238de76d94
644644

645645
COCOAPODS: 1.11.3

0 commit comments

Comments
 (0)