I have a similar issue, it seems to be related to cocoa pods, there is a ticket about the problem here: https://github.com/CocoaPods/CocoaPods/issues/11808#issuecomment-1481244508
a pull request with a potential fix has already been submited by a github user: https://github.com/CocoaPods/CocoaPods/pull/11828
if you scroll down you will find a comment by another github user with a temporary solution which is to downgrade to xcode build tools from 14.3 to 14.2 for builds (works for both builds in the IDE and below is a screenshot for builds in the xcode cloud): https://github.com/CocoaPods/CocoaPods/issues/11808#issuecomment-1481244508
Post
Replies
Boosts
Views
Activity
I updated my stackoverflow ticket with more info regarding this problem: https://stackoverflow.com/questions/75486713/upgrade-from-xcode-14-2-to-14-3-phasescriptexecution-failed-with-a-nonzero-exit/75842910#75842910