rn踩坑纪

1.

Cannot find entry file index.ios.js in any of the roots:["/Users/xxx/Desktop/AwesomeProject"]

该问题一般都是因为当前已经开启某个项目的react-native server,所以只要关闭然后重新运行新项目就可以了。


2.

** BUILD FAILED **



The following commands produced analyzer issues:
    Analyze /Users/scdzs5/wh/project/hpApp/node_modules/react-native/ReactCommon/yoga/yoga/YGNodeList.c
    Analyze /Users/scdzs5/wh/project/hpApp/node_modules/react-native/ReactCommon/yoga/yoga/Yoga.c
(2 commands with analyzer issues)

The following build commands failed:
    PhaseScriptExecution Install\ Third\ Party /Users/scdzs5/wh/project/hpApp/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/double-conversion.build/Script-190EE32F1E6A43DE00A8543A.sh
(1 failure)

一般是版本升级不兼容导致的,reactive-native upgrade手动升级

发表评论