解决方法:
在项目根目录下运行指令(也可能是glog-0.3.4目录)
-
cd node_modules/react-native/third-party/glog-0.3.5
-
../../scripts/ios-configure-glog.sh
重新编译运行即可。
在XCode10上运行还可能有这样的报错,找不到libfishhook.a依赖库:
error: Build input file cannot be found: '/Users/xxx/Desktop/project/cassec-ecapp/node_modules/react-native/Libraries/WebSocket/libfishhook.a'
按以下方式可以解决: