`

../node_modules/react-native/scripts/react-native-xcode.sh: line 84: /scripts/fi

 
阅读更多

 

../node_modules/react-native/scripts/react-native-xcode.sh: line 84: /scripts/find-node.sh: No such file or directory

 

RN的终极解决办法:

将TARGETS下的 Build Phases下的Bundle React Native code and image 改为

export NODE_BINARY=node

../node_modules/react-native/scripts/react-native-xcode.sh

 

并勾选Based on dependency analysis 和show environment variables build log 

然后将node_modules—>react-native->scripts->react-native-xcode.sh文件

里面的source "$RN_DIR/scripts/find-node.sh"

改为source "$REACT_NATIVE_DIR/scripts/find-node.sh"

保存,command+K 然后command + R

搞定!

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics