Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'RCTRootView.h' file not found #11

Open
ColinUNC opened this issue Jun 26, 2015 · 19 comments
Open

'RCTRootView.h' file not found #11

ColinUNC opened this issue Jun 26, 2015 · 19 comments

Comments

@ColinUNC
Copy link

can anyone tell me how to fix this issue?

screen shot 2015-06-26 at 10 45 09 am

@brentvatne
Copy link
Owner

@ColinUNCG - did you resolve this? maybe you need to do a npm install or make sure the search paths are pointing to the correct react native directory in node modules

@aphillipo
Copy link

I too have this issue.

@ddcech
Copy link

ddcech commented Sep 23, 2015

Not sure if this is the proper way to do it but this worked for me.
I imported the file under "Build Phase" into the "Link Binary with Library". Click the plus under "Link Binary with Library", and hit "Add Other...". Then navigate to the directory node_modules -> react-native -> React -> Base -> RCTRootView.m

@zyg-github
Copy link

How to �fix this bug? T_T

@sunyang0904
Copy link

I have solve this issue by using:npm install.At least,it helped me for once.

@sunnywater
Copy link

I've solved it by #import <React/Base/RCTRootView.h>, if you use cocoapods install the react native part.

@LinusU
Copy link

LinusU commented Jan 6, 2016

Running npm install fixed this issue for me :)

@byk04712
Copy link

I have the issue too

@tiansiyuan
Copy link

npm install works for me.

@theewind
Copy link

npm install is so slowly

@arminghm
Copy link

I reanmed the project in package.json and run react-native upgrade.
then build and run application will through an exceptoin that tells the library is not included.
then remove the old ios project files and run rnpm link to link the dependencies.
But after rnpm link the RCTRootView.h could not be found.

@patrickml
Copy link

patrickml commented Jun 3, 2016

Restarting xcode fixed the issue for me

@niyaoyao
Copy link

niyaoyao commented Jul 6, 2016

npm install at source root path is work for me

@HermitCarb
Copy link

Close Xcode and run 'npm install' again. It worked.

@sarimzafar
Copy link

what node version are you guys on? For those who got the npm install to fix it

@zrzhit
Copy link

zrzhit commented Feb 20, 2017

Building Setting -> Header Search Paths -> "${PODS_ROOT}/Headers/Public/React"
change value "not-recursive" to "recursive"

@mgfjx
Copy link

mgfjx commented Mar 7, 2017

Hi, if the above methods have not solved your problem, then you can try my method: Build Settings -> Header Search Path, open it , your RN path may be like this $ (SRCROOT) / react-native / React, if your Node_modules is under the project root directory, then you have to modify $ (SRCROOT) / node_modules / react-native / React, hope it works.

@SnehaGindi
Copy link

Open 'Build Settings', search 'Header Search Path'.

Double click next to 'Header Search Path', where other properties have a 'yes' or 'no'

Now add following to the "Header Search Path" (under Build Settings):

$(SRCROOT)/../node_modules/react-native/React

Make it recursive.

@stefandbd
Copy link

“Cmd +Shift + Enter + K” keys to clear cache and then build project worked for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests