title: Can't archive with Xcode (error - PhaseScriptExecution failed with a non zero exit code), but the build is successful
body: <p><a href="https://i.stack.imgur.com/J4nCY.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/J4nCY.jpg" alt="Error in detail, the black area is the name of the project and its sub-directory"></a><a href="https://i.stack.imgur.com/44EDY.png" rel="noreferrer"><img src="https://i.stack.imgur.com/44EDY.png" alt="Error from Xcode"></a> I am sorry for the black marks in the image. </p>
  
  <p>I have seen multiple posts suggesting an answer to this problem, Lock unlocks keychain (tried it), pod Update (tried it), clear build(tried it), signing, skip install in build settings(tried it) - None of them actually worked. </p>
  
  <p>I built my iOS app in react native with Expo, after which I did expo eject to create the iOS folder for Xcode build and archiving, the build is successful every time and it even runs on the simulator and in my device(iPhone 7) but it always failed to archive by throwing this error - Uncategorised - Command PhaseScriptExecution failed with a non zero exit code.. </p>
  
  <p>Any help to point me in which direction should I go or what can be the possible mistake that I am doing will be of great help. Do let me know if, I should provide any more detail about this. Thank you!</p>
  
  <p>Xcode Version - 11.0
  Mac Version - 10.15 Catalina
  iPhone OS - 13.1.3</p>
  
  <p>Few links I tried from - </p>
  
  <ol>
  <li><a href="https://stackoverflow.com/questions/51174105/pods-root-swiftlint-swiftlint-causes-command-phasescriptexecution-failed-w/54415718#54415718">&quot;${PODS_ROOT}/SwiftLint/swiftlint&quot; causes &quot;Command PhaseScriptExecution failed with a nonzero exit code&quot; with Xcode 10</a></li>
  <li><a href="https://github.com/apollographql/apollo-ios/issues/395" rel="noreferrer">https://github.com/apollographql/apollo-ios/issues/395</a></li>
  <li><a href="https://www.reddit.com/r/iOSProgramming/comments/al9box/getting_an_error_command_phasescriptexecution/" rel="noreferrer">https://www.reddit.com/r/iOSProgramming/comments/al9box/getting_an_error_command_phasescriptexecution/</a></li>
  </ol>