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.
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...