React Native Xcode 10 - 'config.h' file not found

ReactNative 新建项目 Xcode 运行出错

'config.h' file not found

cd node_modules/react-native/third-party/glog-0.3.4 注意glog-0.3.4 可能是glog-0.3.5
./configure

cannot run C compiled programs.

uname -m

React Native Xcode 10 - 'config.h' file not found_第1张图片
image.png

./configure --host=x86_64

Build input file cannot be found: '/Users/liepin/Desktop/XXX/node_modules/react-native/Libraries/WebSocket/libfishhook.a'

React Native Xcode 10 - 'config.h' file not found_第2张图片
image.png

删除重新添加

Module @babel/runtime/helpers/interopRequireDefault

React Native Xcode 10 - 'config.h' file not found_第3张图片
image.png

npm add @babel/runtime
关闭服务,再次运行

你可能感兴趣的:(React Native Xcode 10 - 'config.h' file not found)