Jag*_*ngh 29 xcode ios react-native
在反应原生的X-Code项目中,得到错误
找不到config.h文件.
这是版本细节:
react-native-cli: 2.0.1
react-native: 0.51.0
Run Code Online (Sandbox Code Playgroud)
怎么解决?
小智 88
关闭Xcode.
打开终端,转到项目的根文件夹并运行:
cd node_modules/react-native/third-party/glog-0.3.4/
Run Code Online (Sandbox Code Playgroud)运行configure脚本:
./configure
Run Code Online (Sandbox Code Playgroud)打开Xcode并尝试运行您的应用程序.
Dei*_*man 12
我有同样的问题,使用这个步骤解决了我:
从0.44升级后遇到同样的问题.以上解决方案或清除缓存都没有为我做到这一点.这就是我为了让事情再次发挥作用所做的事情:
react-native/third-party/glog
node_modules内的文件夹(对我来说,这是cd node_modules/react-native/third-party/glog-0.3.4
)sh ../../scripts/ios-configure-glog.sh
Glog并为Xcode创建所需的config.h头文件以进行查找问候!
当项目文件搞砸了我.我通常遵循这些步骤.
rm -rf node_modules
npm install
react-native upgrade (Only changing affected files, so IOS for you)
react-native link
npm start --reset-cache
(In another terminal)
react-native run-ios
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
16777 次 |
最近记录: |