title: Xcode 10.2.1 Command PhaseScriptExecution failed with a nonzero exit code
body: <pre><code>Showing Recent Messages:-1: mkdir -p /Users/spritzindia/Library/Developer/Xcode/DerivedData/Contigo-atftiouzrdopcmcpprphpilawwzm/Build/Products/Debug-iphonesimulator/Contigo.app/Frameworks
  
  Showing Recent Messages:-1: rsync --delete -av --filter P .*.?????? --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "/Users/pothi/Library/Developer/Xcode/DerivedData/Contigo-atftiouzrdopcmcpprphpilawwzm/Build/Products/Debug-iphonesimulator/IQKeyboardManagerSwift/IQKeyboardManagerSwift.framework" "/Users/pothi/Library/Developer/Xcode/DerivedData/Contigo-atftiouzrdopcmcpprphpilawwzm/Build/Products/Debug-iphonesimulator/Contigo.app/Frameworks"
  </code></pre>
  
  <p>Command <code>PhaseScriptExecution</code> failed with a <code>nonzero</code> exit code</p>
  
  <p>I deleted derived data.
  i have tried :  </p>
  
  <blockquote>
    <p>keychain access -> right click on login -> lock &amp; unlock again ->
    clear Xcode project</p>
  </blockquote>
  
  <p>Restarted machine, no use</p>
  
  <p>How do I resolve "<code>Command PhaseScriptExecution failed with a nonzero exit code</code>" error when trying to archive project. </p>
  
  <p>And I am using those librarys </p>
  
  <pre><code>pod 'IQKeyboardManagerSwift'
  pod 'SDWebImage', '~&gt; 4.0'
  pod 'KRPullLoader'
  pod 'Paytm-Payments'
  </code></pre>