Skip to content

XCode: Fix - Patch fmt consteval for Xcode 26/Clang compatibility#2145

Open
cmgustavo wants to merge 1 commit intobitpay:developfrom
cmgustavo:bug/build-ios-xcode-02
Open

XCode: Fix - Patch fmt consteval for Xcode 26/Clang compatibility#2145
cmgustavo wants to merge 1 commit intobitpay:developfrom
cmgustavo:bug/build-ios-xcode-02

Conversation

@cmgustavo
Copy link
Copy Markdown
Member

@cmgustavo cmgustavo commented Apr 17, 2026

Screenshot 2026-04-17 at 5 35 47 PM

Summary

Xcode 26 ships with a stricter version of Clang that rejects consteval in certain contexts inside the fmt library (v11.0.2). Specifically, fmt defines a macro called FMT_CONSTEVAL that resolves to the C++ consteval keyword when the compiler supports it — but Clang 26 raises an error when that keyword is used inside a lambda that returns a local struct, which is exactly what fmt's FMT_STRING macro does internally.

Fix

Added a post_install patch in the Podfile that rewrites #define FMT_CONSTEVAL consteval to #define FMT_CONSTEVAL constexpr in fmt/base.h after every pod install


RN-2691

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant