RCTConvert.h yoga/Yoga.h file not found

See original GitHub issue

I am logging this as a bug as it seems like a bunch of people have logged it as an issue on Stackoverflow … but seems to be a bug http://stackoverflow.com/questions/41505616/yoga-yoga-h-header-file-not-found-after-react-native-integration-in-the-existing

Upgraded to latest react-native 0.4.0

Build project for iOS on Xcode and you get the error message: /Users/adamginsburg/Documents/development/buzzy9/node_modules/react-native/React/Base/RCTConvert.h:13:9: 'yoga/Yoga.h' file not found

  • React Native version: 0.4.0
  • Platform: iOS
  • Operating System: The build issue happen on XCode 8

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:45
  • Comments:88 (19 by maintainers)

github_iconTop GitHub Comments

11reactions
ghuhcommented, Jan 23, 2017

This solution probably won’t work for everyone but when I commented out use_frameworks! in my pod file, the yoga/Yoga.h file not found error went away.

10reactions
julienfouilhecommented, Feb 15, 2017

@kmuralidharan91 You don’t need all the above fixes anymore, remove your patch function in your Podfile, remove the postinstall script in your package.json, just put react-native’s v0.42.0-rc.3 tag or master branch in your dependencies and add yoga as a pod dependency and it should work

package.json:

"react-native": "facebook/react-native#master"

Podfile:

  react_path = '../node_modules/react-native'
  yoga_path = File.join(react_path, 'ReactCommon/yoga')

  pod 'React', :path => react_path, :subspecs => [
    'Core',
    'RCTText',
    'RCTImage',
    'RCTWebSocket', # needed for debugging
    'RCTNetwork'
  ]
  pod 'Yoga', :path => yoga_path

Don’t forget to change all your #include "RCT..." to #include <React/RCT...> too

Read more comments on GitHub >

github_iconTop Results From Across the Web

yoga/yoga.h file not found RCTConvert.h - Stack Overflow
I am getting this error using RN0.62.2 / Xcode 11.3. I have the specified yoga pod in my podfile. Any idea what I...
Read more >
react/rctconvert.h' file not found firebase
This FREE slow-paced all-levels yoga class combines Hatha and Yin styles of yoga to help you reduce stress and tension in both your...
Read more >
Something Wrong with React Native | by Arjun Singh Rajput
React/RCTBridgeModule.h file not found. Then I figure out React is missing from the scheme . It was very weird, I read some of...
Read more >
'React/RCTAnimationType.h' file not found - Bountysource
Hi ! I'm trying to build this lib in iOS but I have this error on the file 'RCTConvert.h': 'React/RCTAnimationType.h' file not found...
Read more >
React Native / Xcode Upgrade and now RCTConvert.h not found
0 via react-native-git-upgrade I get a number of lexical/preprocessor issues when trying to build/run the app in XCode. React/RCTBridgeModule.h' file not found.
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