diff --git a/patches/react-native+0.81.5+005+fmt-compat-fix.patch b/patches/react-native+0.81.5+005+fmt-compat-fix.patch new file mode 100644 index 0000000000..e811438028 --- /dev/null +++ b/patches/react-native+0.81.5+005+fmt-compat-fix.patch @@ -0,0 +1,16 @@ +diff --git a/node_modules/react-native/third-party-podspecs/fmt.podspec b/node_modules/react-native/third-party-podspecs/fmt.podspec +index 2f38990..9b02e48 100644 +--- a/node_modules/react-native/third-party-podspecs/fmt.podspec ++++ b/node_modules/react-native/third-party-podspecs/fmt.podspec +@@ -26,4 +26,11 @@ Pod::Spec.new do |spec| + spec.public_header_files = "include/fmt/*.h" + spec.header_mappings_dir = "include" + spec.source_files = ["include/fmt/*.h", "src/format.cc"] ++ ++ # TODO: Remove after upgrading React Native past 0.83.x ++ # Fix fmt 11.0.2 consteval build error with Xcode 26.4 (facebook/react-native#55601) ++ # Fixed in RN 0.84+ which bumps fmt to a compatible version. ++ spec.prepare_command = <<~SCRIPT ++ perl -i -pe 's/^# define FMT_USE_CONSTEVAL 1$/# define FMT_USE_CONSTEVAL 0/' include/fmt/base.h ++ SCRIPT + end