Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

React native RTCRootView.h not found

I'm trying to use React native and I am getting an error in xcode that says "Lexical or preprocessor error 'RTCRootView.h' not found." I have checked and this file is in the framework folder and I have tried moving it into the project as well and still have not been able to eliminate the error and successfully build.

like image 675
Spencer Pope Avatar asked Jun 05 '15 20:06

Spencer Pope


2 Answers

In the example directory, run npm install to install the dependencies. Then, open swipeoutExample.xcodeproj and run.

react-native-swipeout#15.

edit (2015-10-12):

react-native-swipeout has been updated to use the latest react-native including ./ios and ./android directories.

  • iOS: Open the xcode project in the ./ios directory and run it.
  • Android: Start a simulator, then run react-native run-android in project root directory. (note: swipeout is currently incompatible with Android, but will be soon.)
like image 116
Dan Cormier Avatar answered Nov 16 '22 09:11

Dan Cormier


Running npm install might work for some people, but it didn't work for me.

What worked for me was in XCode > Product > Clean XCode > Product > Clean

like image 29
botbot Avatar answered Nov 16 '22 08:11

botbot