If this solution does not work for you or you don't want to fiddle in files that are not part of your project (and hence could break other things in the future), then there is another solution which is to downgrade the xcode command line tools to 14.2 or do a similar downgrade in xcode cloud, more details about alternative solutions can be found here: https://stackoverflow.com/questions/75486713/upgrade-from-xcode-14-2-to-14-3-phasescriptexecution-failed-with-a-nonzero-exit/75842910#75842910
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: