Xcode 10.2.1 Command PhaseScriptExecution failed with a nonzero exit code
After trying all the solutions, I was missing is to enable this option in: Targets -> Build Phases -> Embedded pods frameworks In newer versions it may be listed as: Targets -> Build Phases -> Bundle React Native code and images Run script only when installing