如何解决“找不到config.h文件”?从设备上的本机运行app时? [英] How to solve "config.h file not found"? when running app from the react native on the device?

查看:899
本文介绍了如何解决“找不到config.h文件”?从设备上的本机运行app时?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

获取错误找不到Config.h文件,词法或预处理器错误。



我正在从xcode项目中运行设备中的应用程序。



我有谷歌并找到了许多解决方案,但没有奏效,我试过这个




运行配置脚本:
。 / configure

打开Xcode并尝试运行您的应用。


Getting error "Config.h file not found, lexical or preprocessor error."

I am running app in the device from the xcode project.

I have google and found many solutions but haven't worked, I tried this

https://github.com/facebook/react-native/issues/14382

And when I try to run in the iOS simulator getting this error

https://github.com/facebook/react-native/issues/10401

Tried to follow the above url but didn't work.

Please let me know how to solve the issue. Thanks

解决方案

try it

Open Terminal, go to your project’s root folder and do:
cd node_modules/react-native/third-party/glog-0.3.4/

Run the configure script: ./configure Open Xcode and try to run your app.

这篇关于如何解决“找不到config.h文件”?从设备上的本机运行app时?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆