Skip to content

The Build Always Fails #2936

@mssngr

Description

@mssngr

Environment

react-native -v: 0.81.6
npm ls react-native-macos: 0.81.7
node -v: v20.20.2
npm -v: 10.8.2
yarn --version: n/a
xcodebuild -version: Xcode 26.4.1, Build version 17E202

Steps to reproduce the bug

  1. Follow the instructions at https://microsoft.github.io/react-native-macos/docs/getting-started
  2. Modify the install command, as react-native version 0.81.2 no longer works with this project: npx @react-native-community/cli init <projectName> --version 0.81.6
  3. cd <projectName>
  4. npx react-native-macos-init
  5. npm run start
  6. In a new terminal window in the same directory, npx react-native run-macos

Expected Behavior

That the project would build and run.

Actual Behavior

The project fails to build, with multiple errors.

5 errors generated.

...

The following build commands failed:
	CompileC /Users/gbriel/Library/Developer/Xcode/DerivedData/trader-hctegxremlnwnnciacsyhjbrhlxp/Build/Intermediates.noindex/Pods.build/Debug/fmt.build/Objects-normal/arm64/format.o /Users/gbriel/dev/trader/macos/Pods/fmt/src/format.cc normal arm64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'fmt' from project 'Pods')
	Building workspace trader with scheme trader-macOS and configuration Debug
(2 failures)

I can't even scrollback to get to all of the errors. The "Get Started" instructions lead to build failurs.

Reproducible Demo

No response

Additional context

No response

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