Comment on Xcode 11 Command PhaseScriptExecution failed with a nonzero exit code Same issue , lock option is in gray color. Developer Tools & Services Xcode Oct ’21