diff --git a/examples/sdk/reactNative/ios/Podfile b/examples/sdk/reactNative/ios/Podfile index 1116f39b..eaccf2e5 100644 --- a/examples/sdk/reactNative/ios/Podfile +++ b/examples/sdk/reactNative/ios/Podfile @@ -37,6 +37,15 @@ target 'reactNative' do # :ccache_enabled => true ) + installer.target_installation_results.pod_target_installation_results.each_value do |result| + result.resource_bundle_targets.each do |bundle_target| + bundle_target.build_configurations.each do |config| + current = config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] || min_ios_version_supported + config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = [min_ios_version_supported.to_f, current.to_f].max.to_s + end + end + end + # Workaround: RN 0.81 bundles fmt 11.0.2 (RN 0.77 used fmt 9.1.0, which did # not need this). fmt 11's consteval FMT_STRING path fails to compile under # Apple clang from Xcode 26+. fmt's base.h already disables consteval for diff --git a/examples/sdk/reactNative/ios/Podfile.lock b/examples/sdk/reactNative/ios/Podfile.lock index 8afa435c..b1406c5a 100644 --- a/examples/sdk/reactNative/ios/Podfile.lock +++ b/examples/sdk/reactNative/ios/Podfile.lock @@ -2590,6 +2590,6 @@ SPEC CHECKSUMS: SocketRocket: d4aabe649be1e368d1318fdf28a022d714d65748 Yoga: 3196a843cc5f4bc433f1a41cf17cdf804a01a529 -PODFILE CHECKSUM: 9be63e3a4da2386882f0c19a6f7f86f34d152f92 +PODFILE CHECKSUM: 8614e71f7a466fb7fed3c5d05722f34fe9172005 COCOAPODS: 1.17.0 diff --git a/examples/sdk/reactNative/ios/reactNative.xcodeproj/project.pbxproj b/examples/sdk/reactNative/ios/reactNative.xcodeproj/project.pbxproj index 4020916f..109b2067 100644 --- a/examples/sdk/reactNative/ios/reactNative.xcodeproj/project.pbxproj +++ b/examples/sdk/reactNative/ios/reactNative.xcodeproj/project.pbxproj @@ -424,7 +424,7 @@ "$(inherited)", ); INFOPLIST_FILE = reactNativeTests/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 13.4; + IPHONEOS_DEPLOYMENT_TARGET = 15.1; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -448,7 +448,7 @@ BUNDLE_LOADER = "$(TEST_HOST)"; COPY_PHASE_STRIP = NO; INFOPLIST_FILE = reactNativeTests/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 13.4; + IPHONEOS_DEPLOYMENT_TARGET = 15.1; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -568,7 +568,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 13.4; + IPHONEOS_DEPLOYMENT_TARGET = 15.1; LD = ""; LDPLUSPLUS = ""; LD_RUNPATH_SEARCH_PATHS = ( @@ -645,7 +645,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 13.4; + IPHONEOS_DEPLOYMENT_TARGET = 15.1; LD = ""; LDPLUSPLUS = ""; LD_RUNPATH_SEARCH_PATHS = ( diff --git a/packages/react-native/README.md b/packages/react-native/README.md index d535b8e8..99afaf85 100644 --- a/packages/react-native/README.md +++ b/packages/react-native/README.md @@ -37,6 +37,7 @@ application to Backtrace. This README covers setup and configuration. Symbolicat ## Supported Versions - React Native 0.72+, verified up to 0.87 +- React Native 0.76+ when building with Xcode 27 - React 18+ - Hermes JavaScript engine (JavaScriptCore is not supported) - New Architecture and Legacy Architecture (React Native 0.82 and later are New Architecture only) @@ -62,6 +63,20 @@ $ cd ios $ pod install ``` +Xcode 27 requires a minimum deployment target of iOS 15.0. Add the following inside the existing `post_install` block +of `ios/Podfile`, then run `pod install` again: + +```ruby +installer.target_installation_results.pod_target_installation_results.each_value do |result| + result.resource_bundle_targets.each do |bundle_target| + bundle_target.build_configurations.each do |config| + current = config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] || min_ios_version_supported + config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = [min_ios_version_supported.to_f, current.to_f].max.to_s + end + end +end +``` + ### Integrate the SDK Add the following code at the top of `index.js`, before `AppRegistry.registerComponent`. The SDK starts before other