如何解决此错误 Command PhaseScriptExecution failed with a nonzero exit code

how to solve this error Command PhaseScriptExecution failed with a nonzero exit code

我已经将我的 Mac 更改为 MacBook m1 并且我的 Xcode V 是 12.4 我的项目 运行 通常在模拟器上但是没有'在真实设备上我尝试删除 pods 它对我不起作用

Command PhaseScriptExecution failed with a nonzero exit code

谢谢

在项目和pods项目的构建设置中的“Excluded Architectures”中添加“arm64”到运行 模拟器中的应用程序。在设备上构建或归档应用程序时将其删除。