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] 'logger/react_native_log.h' file not found in CxxNativeModule.cpp Xcode

See original GitHub issue

Description

Hello, I wanted to update my project from react-native 0.64 to 0.67. I updated well I deleted my nodes modules folder my package.lock, the podfile.lock and the Pods folder.

I then did an npm install, cd ios pod install and npx react-native bundle --entry-file=‘index.js’ --bundle-output=‘./ios/main.jsbundle’ --dev=false --platform=‘ios’ --assets-dest=‘./ios’ and when I try to build my project on an iphone 8 ios 15.3.1 it does not work and the error: ‘logger/react_native_log.h’ file not found from CxxNativeModule.cpp file appears

Can you help me please

Version

0.67.3

Output of npx react-native info

System: OS: macOS 12.2.1 CPU: (12) x64 Intel® Core™ i7-8700B CPU @ 3.20GHz Memory: 25.86 MB / 16.00 GB Shell: 5.8 - /bin/zsh Binaries: Node: 16.14.0 - /usr/local/bin/node Yarn: Not Found npm: 8.3.1 - /usr/local/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchman Managers: CocoaPods: 1.11.2 - /usr/local/bin/pod SDKs: iOS SDK: Platforms: DriverKit 21.2, iOS 15.2, macOS 12.1, tvOS 15.2, watchOS 8.3 Android SDK: Not Found IDEs: Android Studio: 2021.1 AI-211.7628.21.2111.8193401 Xcode: 13.2.1/13C100 - /usr/bin/xcodebuild Languages: Java: 17.0.1 - /usr/bin/javac npmPackages: @react-native-community/cli: ^7.0.1 => 7.0.3 react: 17.0.2 => 17.0.2 react-native: 0.67.3 => 0.67.3 react-native-macos: Not Found npmGlobalPackages: react-native: Not Found

Steps to reproduce

Change version of React-native (0.64 to 0.67) npm install cd ios & pod install npx react-native bundle --entry-file=‘index.js’ --bundle-output=‘./ios/main.jsbundle’ --dev=false --platform=‘ios’ --assets-dest=‘./ios’

Build the project to xcode

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

_No response Capture d’écran 2022-03-14 à 16 32 00 _

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:2
  • Comments:9

github_iconTop GitHub Comments

5reactions
taekwon-ohcommented, Mar 22, 2022

@Marinaarimany i also had a problem exactly same with… did you solve this?

0reactions
hrupeshcommented, Jul 18, 2022

A possible fix for this is to disintegrate pods from your project and reinstall pods

pod deintegrate

pod install

Read more comments on GitHub >

github_iconTop Results From Across the Web

'glog/logging.h' file not found - react native - Stack Overflow
Hello the problem come from the ios-configure-glog.sh you need to remplace this file with a newer ...
Read more >
XCode 10 - "new" file not found | Apple Developer Forums
I tried to compile my project which use both Objective-C and C++ files. One of the cpp files includes a header file (.h)...
Read more >
'UnityMediationSdk/UnityMediationSdk.h' file not found
iOS framework addition failed due to a CocoaPods installation failure. This will will likely result in an non-functional Xcode project. After ...
Read more >
New application: Xcode not finding header files - CHAI3D
xcodeproj, GLFW.xcodeproj projects into my xcode project, as well as ibdrd.a. I have created my own 01-simple.cpp file as the starting ...
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