在物理设备上运行React Native应用时找不到Config.h错误

时间:2019-09-16 07:33:54

标签: reactjs react-native

我正在ios物理设备上运行React Native应用程序,但出现此错误...

/Volumes/Data/Projects/Projects/React Native Projects/Workreap/node_modules/react-native/third-party/glog-0.3.4/src/base/mutex.h:105:10: fatal error: 'config.h' file not found
#include "config.h"           // to figure out pthreads support

这是附件图片,请帮助...

enter image description here

运行make install后显示错误..

Apps-MacBook-Pro:glog-0.3.4 appdeveloper$ make install
 ./install-sh -c -d '/usr/local/lib'
 /bin/sh ./libtool   --mode=install /usr/bin/install -c   libglog.la '/usr/local/lib'
libtool: install: /usr/bin/install -c .libs/libglog.0.dylib /usr/local/lib/libglog.0.dylib
libtool: install: (cd /usr/local/lib && { ln -s -f libglog.0.dylib libglog.dylib || { rm -f libglog.dylib && ln -s libglog.0.dylib libglog.dylib; }; })
libtool: install: /usr/bin/install -c .libs/libglog.lai /usr/local/lib/libglog.la
libtool: install: /usr/bin/install -c .libs/libglog.a /usr/local/lib/libglog.a
libtool: install: chmod 644 /usr/local/lib/libglog.a
libtool: install: ranlib /usr/local/lib/libglog.a
/bin/sh: /Volumes/Data/Projects/Projects/React: No such file or directory
make[1]: *** [install-libLTLIBRARIES] Error 127
make: *** [install-am] Error 2

0 个答案:

没有答案