1

I'm trying to Archive my build in Xcode 11.6 running on macOS 10.15.5 and every time I get the same error "Command PhaseScriptExecution failed with a nonzero exit code". In Signing & Capabilities option I've chosen Distribution provisioning profile on both tabs Debug and Release and I've disabled automatic signing.

Picture1

I have 2 certificates: one for development and one for distribution.

Picture2

Here is the error:

Picture3

I've already tried Keychain lock and unlock. On Xcode 10 and macOS 10.14 this worked without any problems.

Can you help me please, Robert

1 Answer 1

1

According to the error message, it seems there is a build script that tries to run another script called copy-www-build-step.sh, and gets a "Permission Denied" error. The most likely cause is simply that the script file does not have execute permissions (no files have this permission by default, and permissions are often lost when e.g. unzipping an archive).

This can be easily solved by running the following command in Terminal to enable execute permissions:

chmod +x /path/to/copy-www-build-step.sh
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.