Skip to content

Broken under macOS 27/Xcode 27 #2994

Closed
Closed

Description

Environment

npm ls react-native-macos: 0.81.6

Steps to reproduce the bug

I know it's not a priority to fix builds for beta software, but consider this just an advisory. Build is broken on Xcode 27 with:

/Users/osp/Developer/sol/macos/Pods/fmt/include/fmt/format-inl.h:59:24 Call to consteval function 'fmt::basic_format_string<char, fmt::basic_string_view<char> &, const char (&)[3]>::basic_format_string<FMT_COMPILE_STRING, 0>' is not a constant expression

/Users/osp/Developer/sol/macos/Pods/fmt/include/fmt/format-inl.h:60:22 Call to consteval function 'fmt::basic_format_string<char, const char (&)[7], int &>::basic_format_string<FMT_COMPILE_STRING, 0>' is not a constant expression

/Users/osp/Developer/sol/macos/Pods/fmt/include/fmt/format-inl.h:1387:35 Call to consteval function 'fmt::basic_format_string<char, unsigned int &>::basic_format_string<FMT_COMPILE_STRING, 0>' is not a constant expression

/Users/osp/Developer/sol/macos/Pods/fmt/include/fmt/format-inl.h:1391:33 Call to consteval function 'fmt::basic_format_string<char, unsigned int &>::basic_format_string<FMT_COMPILE_STRING, 0>' is not a constant expression

/Users/osp/Developer/sol/macos/Pods/fmt/include/fmt/format-inl.h:1394:33 Call to consteval function 'fmt::basic_format_string<char, int>::basic_format_string<FMT_COMPILE_STRING, 0>' is not a constant expression

Expected Behavior

No response

Actual Behavior

No response

Reproducible Demo

No response

Additional context

No response

Activity

  1. ospfranco commented on Jun 24, 2026

    @ospfranco
    Author

    Workaround from podfile, seems to be forcing C++ 17 version, so it's a bump in the C++ compiler that is causing the error.

    def disable_fmt_consteval!(installer)
      installer.pods_project.targets.each do |target|
        target.build_configurations.each do |config|
          next unless target.name == 'fmt'
    
          config.build_settings['CLANG_CXX_LANGUAGE_STANDARD'] = 'gnu++17'
        end
      end
    end
    
  2. Saadnajmi commented on Jun 25, 2026

    @Saadnajmi
    Collaborator

    Does #2961 fix it? I think upstream updates fmt to 12.0, which I may pick up too

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions