diff --git a/ios/Podfile b/ios/Podfile index 85577d0b8001..6eb84320a77c 100644 --- a/ios/Podfile +++ b/ios/Podfile @@ -22,6 +22,21 @@ if linkage != nil use_frameworks! :linkage => linkage.to_sym end +# Force pods to match minimum iOS version for React Native +# Fixes build issue on Xcode Cloud where some pods +# Use iOS 12 calls despite being set as iOS 11 +def __apply_Xcode_14_3_RC_post_install_workaround(installer) + installer.pods_project.targets.each do |target| + target.build_configurations.each do |config| + current_target = config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] + minimum_target = min_ios_version_supported + if current_target.to_f < minimum_target.to_f + config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = minimum_target + end + end + end +end + target 'NewExpensify' do permissions_path = '../node_modules/react-native-permissions/ios' @@ -65,6 +80,7 @@ target 'NewExpensify' do :mac_catalyst_enabled => false ) __apply_Xcode_12_5_M1_post_install_workaround(installer) + __apply_Xcode_14_3_RC_post_install_workaround(installer) installer.pods_project.build_configurations.each do |config| config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64" diff --git a/ios/Podfile.lock b/ios/Podfile.lock index f0d6720080e8..766a322607bd 100644 --- a/ios/Podfile.lock +++ b/ios/Podfile.lock @@ -1133,6 +1133,6 @@ SPEC CHECKSUMS: Yoga: f87bd008d34c18bf990d4371200802f2866ce18c YogaKit: f782866e155069a2cca2517aafea43200b01fd5a -PODFILE CHECKSUM: 5feaab251246f42f41e69c8a28fa331b4899e814 +PODFILE CHECKSUM: 4ed1c7b099741c82e2b0411b95f6468e72be6c76 COCOAPODS: 1.12.0