我正在使用Xcode构建一个新项目,但出现错误
反应性初始测试
{
"name": "test1",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
"test": "jest"
},
"dependencies": {
"react": "16.8.3",
"react-native": "0.59.9"
},
"devDependencies": {
"@babel/core": "7.4.5",
"@babel/runtime": "7.4.5",
"babel-jest": "24.8.0",
"jest": "24.8.0",
"metro-react-native-babel-preset": "0.54.1",
"react-test-renderer": "16.8.3"
},
"jest": {
"preset": "react-native"
}
}
我收到此错误
找不到'glog / logging.h'文件
答案 0 :(得分:0)
尝试一下:
rm -rf ./node_modules && yarn && react-native run-ios
答案 1 :(得分:0)
cd node_modules/react-native/third-party/glog-0.3.4 && ../../scripts/ios-configure-glog.sh
应该可以解决问题。
您只需要手动执行脚本。可能需要sudo。