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.

Error: React/RCTEventDispatcher.h not found in iOS

See original GitHub issue

Following the instruction via:

  1. yarn react-native-gesture-handler
  2. react-native link react-native-gesture-handler

Then I compiled my Xcode project and got an issue: Error: React/RCTEventDispatcher.h not found image

My environment is: “react”: “16.3.2”, “react-native”: “0.55.3”, “react-native-gesture-handler”: “^1.0.0”,

By the way, is there a pod that I can use for Cocoapod in iOS?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:30 (6 by maintainers)

github_iconTop GitHub Comments

58reactions
hichamnaimicommented, Dec 28, 2018

If you are using react-link to link your dependencies: 1/ open your ios Podfile and delete all yout linked dependencies: pod ‘xxxxxxx’, :path => ‘…/node_modules/xxxxx’ 2/ Close Xcode 3/ In your /ios folder run “pod update” 4/ In your project source run “react-native link” 5/ Open Xcode and Clean Build Folder from Xcode Menu -> Product 6/ Run your application from Xcode 7/ Link manually the dependency “react-native-gesture-handler” into your Xcode Project following steps in documentation: https://facebook.github.io/react-native/docs/linking-libraries-ios 8/ Now run your application from Xcode, you should be fine.

25reactions
osdnkcommented, May 20, 2018

@ikzjfr0, Did you try ‘Product->Clean’ in Xcode and then build again?

Read more comments on GitHub >

github_iconTop Results From Across the Web

'React/RCTEventDispatcher.h' file not found #299 - GitHub
I believe this is a bug in this project, not with your code. I could be wrong, but... Solution: Go in and add...
Read more >
Integrating existing app iOS 'React ... - Stack Overflow
1- delete the app from my iPhone simulator and then go to Hardware -> Erase all content & settings. 2- delete all your...
Read more >
Integrating existing app iOS 'React/RCTEventDispatcher.h' file ...
Coding example for the question Integrating existing app iOS 'React/RCTEventDispatcher.h' file not found on React Native.
Read more >
“React/RCTLog.h file not found” an… | Apple Developer Forums
I *suspect* this problem is easily solved by putting certain files in the right place, but what files should go where? BUILD ERRORS...
Read more >
'React/RCTEventDispatcher.h' file not found - Code Grepper
rcteventdispatcher.h' file not found. Add Answer | View In TPC Matrix. Technical Problem Cluster First Answered On January 4, 2020 Popularity 6/10 ...
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