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...
Upgrade from xCode 14.2 to 14.3 Ph… | Apple Developer Forums
Hi, we are seeing the same problem with Xcode betas 14E5197f, 14E5207e and 14E5215g. When using 14C18 there is no error. As part of our diagnosis, we went through the laborious task of creating each 'missing' folder in ../../../IntermediateBuildFilesPath,
developer.apple.com