Comment on Xcode 11 Command PhaseScriptExecution failed with a nonzero exit code the solution for our project was to go to the Xcode->Preferences...->Accounts and remove a develop certificate and create a new one via "Manage certificate..." button p.s. and, perhaps, the good point is to remove all expired certificates too Developer Tools & Services Xcode Jan ’23