react-native错误

xcrun: error: unable to find utility “instruments”, not a developer tool or in PATH
在终端执行如下命令 sudo xcode-select -s /Applications/Xcode.app/Contents/Developer/

‘config.h’ file not found

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

undefined is not an object (evaluating ‘RNFSManager.RNFSFileTypeRegular’)

react-native link react-native-fs

重新编译

Xcode 10 libfishhook.a cannot be found

:-1: Build input file cannot be found: ‘/…../node_modules/react-native/Libraries/WebSocket/libfishhook.a’

1、Project Navigator    2、Libraries    3、RCTWebSocket.xcodeproj    4、Build Phases    5、Link Binary With Libraries    6、删掉libfishhook.a,重新添加libfishhook.a

‘config.h’ file not found

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