[React Native] AnalyzerでBUILD FAILEDな時の対処法

Projectのディレクトリを移動されたらreact-native run-iosで失敗するようになった。

** BUILD FAILED **


The following commands produced analyzer issues:
        Analyze /Users/shohey1226/git/Kagami/node_modules/react-native/ReactCommon/yoga/yoga/Yoga.c

        Analyze /Users/shohey1226/git/Kagami/node_modules/react-native/ReactCommon/yoga/yoga/YGNodeList.c
(2 commands with analyzer issues)

The following build commands failed:
        Analyze /Users/shohey1226/git/Kagami/node_modules/react-native/ReactCommon/yoga/yoga/Yoga.c
        Analyze /Users/shohey1226/git/Kagami/node_modules/react-native/ReactCommon/yoga/yoga/YGNodeList.c
(2 failures)

キャッシュを使用してBuildを試みてて失敗しているようなので、ビルドを消す。

$ rm -rf ios/build
$ react-native run-ios

Related Posts