【发布时间】:2018-11-22 23:54:14
【问题描述】:
我是 React 原生开发者的初学者。
新建项目后打开。
xcode is display error config.h file not found in mutex.h 文件。我也在谷歌搜索并尝试可能的解决方案,但仍然显示相同的错误。
我已经完成了以下命令
1
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
2
brew install watchman
3
npm install -g react-native-cli
4
react-native init projectName
5
cd projectName
react-native start
6
react-native run-ios
CMD 错误
./Desktop/Demo React Native/projectName/node_modules/react-native/React/../third-party/glog-0.3.4/src/base/mutex.h:105:10:致命错误:'config.h ' 找不到文件include "config.h" // 确定 pthreads 支持
生成 1 个错误。
软件版本列表
自制 1.6.8
react-native-cli: 2.0.1
反应原生:0.55
守望者 4.9.0
npm 6.1.0
我也在尝试这个解决方案,但仍然出错
在终端中,导航到 third-party/glog 和 config glog 文件
cd node_modules/react-native/third-party/glog-0.3.4
./../scripts/ios-configure-glog.sh
【问题讨论】:
标签: javascript ios objective-c xcode react-native