fix(ios): force fmt 12.1.0 in the example so it compiles on Xcode 26.4+ - #349
Merged
Merged
Conversation
RN 0.80's bundled fmt 11.0.2 fails to build on Xcode 26.4+ (Apple clang 21 rejects fmt's consteval FMT_STRING path, expo/expo#44229). The previous FMT_USE_CONSTEVAL=0 build setting never took effect: fmt 11.0.2 predates the escape hatch (fmt 11.1) and unconditionally re-defines the macro. Instead of patching fmt sources, force fmt 12.1.0 — the version RN 0.86 ships, where the consteval code is actually fixed — by rewriting the vendored fmt/RCT-Folly podspecs before dependency resolution (RCT-Folly exact-pins fmt). Verified on Xcode 26.5: full example build succeeds and the iOS harness suite passes (26 suites / 204 tests). Drop once the example is on RN >= 0.83.
This was referenced Jul 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
RN 0.80's bundled fmt 11.0.2 fails to compile on Xcode 26.4+ (Apple clang 21 rejects fmt's consteval
FMT_STRINGpath, expo/expo#44229). TheFMT_USE_CONSTEVAL=0build setting the Podfile used never took effect: fmt 11.0.2 predates the#ifdefescape hatch (added in fmt 11.1) and unconditionally re-defines the macro.Instead of patching fmt sources, force fmt 12.1.0 — the version RN 0.86 ships, where the consteval code is fixed upstream — by rewriting the vendored
fmt.podspecandRCT-Folly.podspec(which exact-pins fmt) before dependency resolution, and dropping stalePods/Local PodspecsJSONs that CocoaPods would otherwise reuse. First install after this change needspod update fmtorrm Podfile.lock(CI already deletes the lock). Drop the whole block once the example is on RN >= 0.83.Verified on Xcode 26.5: full example build succeeds and the iOS harness suite passes (26 suites / 204 tests).