XCode: Fix - Patch fmt consteval for Xcode 26/Clang compatibility#2145
Open
cmgustavo wants to merge 1 commit intobitpay:developfrom
Open
XCode: Fix - Patch fmt consteval for Xcode 26/Clang compatibility#2145cmgustavo wants to merge 1 commit intobitpay:developfrom
cmgustavo wants to merge 1 commit intobitpay:developfrom
Conversation
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.
Summary
Xcode 26 ships with a stricter version of Clang that rejects
constevalin certain contexts inside the fmt library (v11.0.2). Specifically,fmtdefines a macro calledFMT_CONSTEVALthat resolves to the C++constevalkeyword 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 whatfmt's FMT_STRINGmacro does internally.Fix
Added a
post_installpatch in thePodfilethat rewrites#define FMT_CONSTEVAL constevalto#define FMT_CONSTEVAL constexprinfmt/base.hafter every pod installRN-2691