question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[iOS] [0.68.0-rc.4] 'react/config/ReactNativeConfig.h' file not found

See original GitHub issue

Description

When running the latest RC via iOS using the new architecture, I am running into the following error:

/Users/alex/Documents/Projects/DemoFabricProject/node_modules/react-native/ReactCommon/react/renderer/scheduler/Scheduler.h:14:10: ‘react/config/ReactNativeConfig.h’ file not found

#include <react/config/ReactNativeConfig.h>

Version

0.68.0-rc.4

Output of npx react-native info

System: OS: macOS 12.3 CPU: (12) x64 Intel® Core™ i7-9750H CPU @ 2.60GHz Memory: 1.45 GB / 16.00 GB Shell: 5.8 - /bin/zsh Binaries: Node: 16.14.2 - /usr/local/bin/node Yarn: 3.2.0 - ~/.yarn/bin/yarn npm: 8.5.0 - /usr/local/bin/npm Watchman: 2022.03.21.00 - /usr/local/bin/watchman Managers: CocoaPods: 1.11.3 - /Users/alex/.rbenv/shims/pod SDKs: iOS SDK: Platforms: DriverKit 21.4, iOS 15.4, macOS 12.3, tvOS 15.4, watchOS 8.5 Android SDK: API Levels: 28, 30, 31, 32 Build Tools: 29.0.2, 30.0.2, 30.0.3, 32.0.0 System Images: android-31 | Google APIs Intel x86 Atom_64, android-31 | Google Play Intel x86 Atom_64, android-32 | Google APIs Intel x86 Atom_64, android-32 | Google Play Intel x86 Atom_64 Android NDK: Not Found IDEs: Android Studio: 2021.1 AI-211.7628.21.2111.8193401 Xcode: 13.3/13E113 - /usr/bin/xcodebuild Languages: Java: 11.0.14.1 - /usr/bin/javac npmPackages: @react-native-community/cli: Not Found react: Not Found react-native: Not Found react-native-macos: Not Found npmGlobalPackages: react-native: Not Found

Steps to reproduce

Install project using 0.68.0-rc.4 and follow the steps provided by the upgrade helper.

Snack, code example, screenshot, or link to a repository

No response

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:5
  • Comments:26 (6 by maintainers)

github_iconTop GitHub Comments

57reactions
renchapcommented, Mar 30, 2022

I removed my ios/build/ and ios/Pods/, rebuilt everything, and it now compiles with RN 0.68.0. @AlexanderEggers have you tried this?

13reactions
renchapcommented, Mar 30, 2022

I am seeing a similar issue:

❌  /Users/renchap/dev/project/packages/mobile/ios/Pods/Headers/Private/React-Codegen/react/renderer/components/rncore/EventEmitters.h:12:10: 'react/renderer/components/view/ViewEventEmitter.h' file not found

#include <react/renderer/components/view/ViewEventEmitter.h>
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Read more comments on GitHub >

github_iconTop Results From Across the Web

React Native Config.h not found - Stack Overflow
I'm beginner of React native developer. After create new project then open it. xcode is display error config.h file not found in mutex.h...
Read more >
'RCTLog.h' file not found & Us… | Apple Developer Forums
The technical issue is as follows: it seems to be appearing in the RNBranchConfig.m file within the react-native-branch package for iOS specifically in...
Read more >
Troubleshoot OneDrive for iOS app problems - Microsoft Support
We're sorry you're having trouble with your OneDrive for iOS mobile app. ... Whiteboard sharing not working in OneDrive for work or school....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found