首页 > 其他 > 详细

【转】Mojave + Xcode 10 build fails on glog config.h, gflags/gflags.h

时间:2019-12-26 16:46:03      阅读:100      评论:0      收藏:0      [点我收藏+]

原文网址:https://stackoverflow.com/questions/50896834/mojave-xcode-10-build-fails-on-glog-config-h-gflags-gflags-h

I‘m testing React Native 0.56.0-rc.2 on Mac OS Mojave and Xcode 10.

Running:

react-native init TestProject --version="0.56.0-rc.2"
cd TestProject
npm run start
react-native run-ios

Which generated some long errors.

Entering Xcode gave me a failure on missing config.h for glog, which I found could be built manually:

cd ./node_modules/react-native/third-party/glog-0.3.4
./configure && make && make install

Which passed that stage, but got me on yet another issue

(...)/node_modules/react-native/third-party/glog-0.3.4/src/glog/logging.h:85:10:
‘gflags/gflags.h‘ file not found

I can‘t find anything related to RN and this on Google or Stack Overflow, only references to other packages and instructions to install those on a Debian-based system.

Is this a known issue?

 

Running this from the project directory fixed it for me:

cd ./node_modules/react-native/third-party/glog-0.3.4 && ../../scripts/ios-configure-glog.sh

This manually triggers the config script

 

【转】Mojave + Xcode 10 build fails on glog config.h, gflags/gflags.h

原文:https://www.cnblogs.com/wi100sh/p/12102561.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!