Search code examples
swiftcocoaapple-m1

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


enter image description hereI hade changed my Mac to MacBook m1 and my Xcode V is 12.4 my project run normally on simulator but doesn't on the real device I tried to delete the pods it doesn't work for me

Command PhaseScriptExecution failed with a nonzero exit code

Thank you


Solution

  • Add "arm64" in "Excluded Architectures" in build settings of both project and pods project, to run the app in simulator. Remove it while making build on device or archiving the app.