title: "Command PhaseScriptExecution failed with a nonzero exit code" when archiving
body: <p>so I have an app built with Expo but then ejected to get ios and android folder everything works fine on both android and ios I have published it for android but on ios when I try to archive the project it gives me an error <code>Command PhaseScriptExecution failed with nonzero exit code</code> i don't know what's causing this error I have read a lot of StackOverflow questions tried a lot of things but with no luck here's what I tried so far.</p>
  
  <p>I tried:</p>
  
  <ul>
  <li>removing pod lock file, removing pod folder, doing <code>pod deintegrate</code>,
  doing <code>pod update</code>
  
  <ul>
  <li>locking and unlocking the login in keychainAccess</li>
  <li>cleaning build folder in xcode</li>
  <li>restarting my laptop and xcode</li>
  <li>changing to legacy build system from new build system</li>
  <li>removing DerivedData folder and cleaning Xcode </li>
  </ul></li>
  <li>upgrading cocopods and doing pod install again</li>
  </ul>
  
  <p>Okay so before, building with <code>Command+B</code> also didn't work but now i went to Targets->App name->build phases->bundle expo assets-> and checked the " run script only while installing" option and building started working but archiving still doesn't work</p>
  
  <p>along with the above error i also noticed another error on xcode</p>
  
  <p><a href="https://i.stack.imgur.com/01f9S.png" rel="noreferrer"><img src="https://i.stack.imgur.com/01f9S.png" alt="enter image description here"></a></p>
  
  <p>So please if anyone has any ideas why this is happening, please?</p>
  
  <p><a href="https://i.stack.imgur.com/rhTaf.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/rhTaf.jpg" alt="error screenshot"></a></p>