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

前端 未结 5 1440
故里飘歌
故里飘歌 2021-02-08 21:39

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          


        
5条回答
  •  一个人的身影
    2021-02-08 22:13

    I resolved it by running following steps

    • In the root of the project, run npm install or yarn - install packages
    • cd node_modules/react-native - go to node modules directory
    • scripts/ios-install-third-party.sh - install @ node_modules/react-native/third-party
    • cd third-party - go to newly created third party directory
    • cd glog-0.3.x - ls -la to find your directory version number or just use tab to auto-complete)
    • ./configure - run setup
    • cd ../../../../ - change back to your project directory react-native run-ios or react-native run-android - deploy

提交回复
热议问题