Build interrupted - The following build commands failed: PhaseScriptExecution

Hi @FWFabio,

Thanks for reporting this here! :wink:

If the error is a PhaseScriptExecution ... .sh that means you have a custom Build Phase Script in your Xcode project which fails.

You should check the script and see why that fails, e.g. might be a missing / not installed tool you try to run.

Debug note: when you write a Bash script you should always start it with

set -ex

e.g.

#!/bin/bash
set -ex

ls

to enable Bash’s “log the command before execution” and “error if a command fails” modes.

If the formatted Xcode log does not include the output of the script (which seems to be the case in your report) then you should check the full, raw xcodebuild output log. Related guide: Xcode exit code 65 / exit code 66 / raw-xcodebuild-output.log - #2 by viktorbenei

If you have any questions just let us know!