microsoft / react-native-macos

A framework for building native macOS apps with React.
https://microsoft.github.io/react-native-windows/
MIT License
3.49k stars 135 forks source link

React-Codegen.modulemap not found after upgrading to v0.75.2 #2192

Open AdrianFahrbach opened 3 weeks ago

AdrianFahrbach commented 3 weeks ago

Environment

react-native -v: v0.75.2
node -v: v20.12.1
npm -v: 10.5.0
yarn --version: Not in use
xcodebuild -version: Xcode 15.4 Build version 15F31d

Steps to reproduce the bug

  1. Clone the affected repo from here
  2. Install the dependencies and start the project with nom start
  3. Open the MacOS Xcode project in the macos folder
  4. Try building the project in Xcode. You should get an error.

Expected Behavior

No response

Actual Behavior

In Xcode I get this error:

module map file '/path/to/chronos-app/macos/Pods/Headers/Public/React_Codegen/React-Codegen.modulemap' not found

I guess there is some kind of package from RN missing?

Reproducible Demo

No response

Additional context

To get the app working again after upgrading, I had to do some adjustments to the Podfiles. I also updated the Gemfile. I did that by creating a new RN macOS project and copying the respective files from the newly generated project to mine. I did have to remove a line from the macOS Podfile that disabled flipper (:flipper_configuration => flipper_config), so this may have something to do with it.

The changes that I did to upgrade can be seen in this commit.