Skip to content

Commit bdbf3bd

Browse files
committed
fix(macos-test-app): bump react-native-macos to 0.81.8, drop fmt patch
react-native-macos 0.81.8 bumps its vendored fmt from 11.0.2 to 12.1.0 (verified: third-party-podspecs/fmt.podspec pins 11.0.2 at v0.81.1 and 12.1.0 at v0.81.8), which resolves the Xcode 26.4 / Apple clang 21 consteval build failure at its source. Bump REACT_NATIVE_MACOS_VERSION from 0.81.1 to 0.81.8 and remove the manual Podfile header patch that forced FMT_USE_CONSTEVAL off. Core react-native stays at 0.81.5 (facebook's 0.81 line has no 0.81.8; the two packages track independent patch cadences within the same minor). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011PM3HdJVbivXpzc2MQJV9T
1 parent 821b210 commit bdbf3bd

1 file changed

Lines changed: 2 additions & 13 deletions

File tree

‎scripts/init-macos-test-app.ts‎

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import path from "node:path";
55
import { readPackage } from "read-pkg";
66

77
const REACT_NATIVE_VERSION = "0.81.5";
8-
const REACT_NATIVE_MACOS_VERSION = "0.81.1";
8+
const REACT_NATIVE_MACOS_VERSION = "0.81.8";
99
const REACT_VERSION = "^19.1.4";
1010

1111
const ROOT_PATH = path.join(import.meta.dirname, "..");
@@ -171,18 +171,7 @@ async function patchPodfile() {
171171
],
172172
[
173173
"react_native_post_install(installer)",
174-
`react_native_post_install(installer, '../node_modules/react-native-macos')
175-
176-
# Disable fmt's consteval format-string checks, which Xcode 26.4 / clang 21
177-
# reject in RN 0.81's bundled fmt 11.0.2. Removable once react-native-macos
178-
# ships a release carrying fmt >= 12.1.
179-
fmt_root = File.join(installer.sandbox.root.to_s, 'fmt')
180-
Dir.glob(File.join(fmt_root, '**', '*.h')).each do |header|
181-
contents = File.read(header)
182-
next unless contents.include?('FMT_USE_CONSTEVAL')
183-
patched = contents.gsub(/#\\s*define\\s+FMT_USE_CONSTEVAL\\s+1\\b/, '#define FMT_USE_CONSTEVAL 0')
184-
File.write(header, patched) if patched != contents
185-
end`,
174+
"react_native_post_install(installer, '../node_modules/react-native-macos')",
186175
],
187176
];
188177

0 commit comments

Comments
 (0)