diff --git a/ios/Podfile b/ios/Podfile index 8409c0dc6..63c51f5fc 100644 --- a/ios/Podfile +++ b/ios/Podfile @@ -21,6 +21,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 'CalendarsExample' do config = use_native_modules! @@ -56,5 +71,6 @@ target 'CalendarsExample' do :mac_catalyst_enabled => false ) __apply_Xcode_12_5_M1_post_install_workaround(installer) + __apply_Xcode_14_3_RC_post_install_workaround(installer) end end diff --git a/ios/Podfile.lock b/ios/Podfile.lock index 396b194f5..8587eb8f5 100644 --- a/ios/Podfile.lock +++ b/ios/Podfile.lock @@ -636,6 +636,6 @@ SPEC CHECKSUMS: Yoga: 5b0304b3dbef2b52e078052138e23a19c7dacaef YogaKit: f782866e155069a2cca2517aafea43200b01fd5a -PODFILE CHECKSUM: 6fb48bcb25807a78bde186d5cbeb4012c3846566 +PODFILE CHECKSUM: 1500574a11dbbbef5be444c708c47fe3057cdcc9 COCOAPODS: 1.12.0