Xcode 10.2.1 Command PhaseScriptExecution failed with a nonzero exit code Xcode 10.2.1 Command PhaseScriptExecution failed with a nonzero exit code swift swift

Xcode 10.2.1 Command PhaseScriptExecution failed with a nonzero exit code


Go to

  1. Keychain Access -> Right-click on login -> Lock & unlock again

  2. Xcode -> Clean Xcode project ->Make build again


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

Build Phases


Run the following commands from the ios directory:

  1. pod deintegrate
  2. pod install
  3. XCode Clean build

Or, One-Liner:

pod deintegrate; pod install