facebook / react-native

A framework for building native applications using React
https://reactnative.dev
MIT License
116.26k stars 23.99k forks source link

'React/JSCExecutorFactory.h' file not found #44329

Closed lemo-gizem closed 2 weeks ago

lemo-gizem commented 2 weeks ago

Description

I started getting this error after updating React Native from ( 0.73.4 -> 0.74.0 )

Steps to reproduce

I started getting this error after updating React Native from ( 0.73.4 -> 0.74.0 )

React Native Version

0.74.0

Affected Platforms

Runtime - iOS

Output of npx react-native info

System:
  OS: macOS 14.4.1
  CPU: (8) arm64 Apple M2
  Memory: 137.92 MB / 16.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 18.17.0
    path: ~/.nvm/versions/node/v18.17.0/bin/node
  Yarn: Not Found
  npm:
    version: 10.4.0
    path: ~/Projects/-/Mobile/--mobile/node_modules/.bin/npm
  Watchman:
    version: 2023.12.04.00
    path: /opt/homebrew/bin/watchman
Managers:
  CocoaPods:
    version: 1.14.3
    path: /usr/local/bin/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 23.4
      - iOS 17.4
      - macOS 14.4
      - tvOS 17.4
      - visionOS 1.1
      - watchOS 10.4
  Android SDK: Not Found
IDEs:
  Android Studio: Not Found
  Xcode:
    version: 15.3/15E204a
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 17.0.9
    path: /usr/bin/javac
  Ruby:
    version: 2.6.10
    path: /usr/bin/ruby
npmPackages:
  "@react-native-community/cli": Not Found
  react:
    installed: 18.2.0
    wanted: 18.2.0
  react-native:
    installed: 0.74.0
    wanted: ^0.74.0
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: false
iOS:
  hermesEnabled: true
  newArchEnabled: false

Stacktrace or Logs

/Users/-/Projects/-/Mobile/--mobile/node_modules/react-native/Libraries/AppDelegate/RCTAppSetupUtils.h:23:9 'React/JSCExecutorFactory.h' file not found

Reproducer

https://github.com/lemo-gizem

Screenshots and Videos

I started getting this error after updating React Native from ( 0.73.4 -> 0.74.4 )

Screenshot 2024-04-30 at 12 12 02
github-actions[bot] commented 2 weeks ago
:warning: Missing Reproducible Example
:information_source: We could not detect a reproducible example in your issue report. Please provide either:
  • If your bug is UI related: a Snack
  • If your bug is build/update related: use our Reproducer Template. A reproducer needs to be in a GitHub repository under your username.
lemo-gizem commented 2 weeks ago

I removed #import from ios/projectName/AppDelegate.mm and this solve my problem