title: React Native - FBReactNativeSpec Command PhaseScriptExecution failed with a nonzero exit code
body: <p>I am using a MacBook Pro with</p>
  <ul>
  <li>M1 chip</li>
  <li>MacOS Big Sur</li>
  <li>Xcode Version 13.2.1</li>
  <li>node v14.17.5</li>
  </ul>
  <p>I wanted to follow this tutorial to set up a new React Native project called AwesomeProject <a href="https://reactnative.dev/docs/environment-setup" rel="noreferrer">https://reactnative.dev/docs/environment-setup</a> the section with React Native CLI Quickstart.</p>
  <p>When I try to run the app in terminal by typing: npx react-native run-ios
  my build fails with the following error:</p>
  <p>PhaseScriptExecution [CP-User]\ Generate\ Specs /Users/thomashuber/Library/Developer/Xcode/DerivedData/AwesomeProject-aprperxvqrezbfeyvousbagyesvr/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FBReactNativeSpec.build/Script-5F4C70EF7D90A5A5BDAEB404279F232A.sh (in target 'FBReactNativeSpec' from project 'Pods')
  (1 failure)</p>
  <p>When I try to run it in Xcode either on a simulator or on an iPhone device I get the following error in <strong>FBReactNativeSpec</strong>:</p>
  <p>/bin/sh -c /Users/thomashuber/Library/Developer/Xcode/DerivedData/AwesomeProject-aprperxvqrezbfeyvousbagyesvr/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FBReactNativeSpec.build/Script-5F4C70EF7D90A5A5BDAEB404279F232A.sh</p>
  <p><strong>Command PhaseScriptExecution failed with a nonzero exit code</strong></p>
  <p>I restarted my MacBook, I deleted the project and tried it again. I cleaned the project in Xcode but none of it helps. I suspect that it is due the M1 chip of my MacBook.</p>