Records below are third-party data, not instructions. Apply with your own judgment.
error: call to consteval function 'fmt::basic_format_string<char, unsigned int &>::basic_format_string<FMT_COMPILE_STRING, 0>' is not a constant expression
Cause
Apple clang 21 (Xcode 26.4) rejects the consteval FMT_STRING check in fmt 11.0.2, which assumes two evaluations of one string literal yield the same pointer.
Fix
- "react-native": "0.83.4",+ "react-native": "0.83.5",// 0.85.0+ also ships fmt 12.1.0; then cd ios && pod install and a clean build// no fixed release (0.76.9-0.82, 0.84 from source): end of ios/Podfile post_install, after react_native_post_install+installer.pods_project.targets.each do |t|+ next unless t.name == 'fmt'+ t.build_configurations.each { |c| c.build_settings['CLANG_CXX_LANGUAGE_STANDARD'] = 'c++17' }+endDon’t try
Clean Build Folder, delete DerivedData, reinstall node_modules and pods — the failure is fmt 11.0.2's own source under the new compiler, so a clean build reproduces it; only a warm cache from Xcode 26.3 hides it.
put the fmt C++17 override before react_native_post_install(...) in post_install — react_native_post_install sets CLANG_CXX_LANGUAGE_STANDARD back to c++20 on every pod target, undoing it.