Search code examples
xcodeerror-handlingxcode14.3

XCode 14.3 Command PhaseScriptExecution failed with a nonzero exit code


I am getting Command PhaseScriptExecution failed with a nonzero exit code after updating to XCode 14.3. Earlier it was working fine. Tried multiple solutions still result is same.


Solution

  • Workaround is to update all the generated ...-frameworks.sh files to add the -f flag to the call to readlink. In other words, need to replace:

    source="$(readlink "${source}")"

    with

    source="$(readlink -f "${source}")"

    Seems this is CocoaPods issue...