When I am trying to create archive for iOS app I am getting this error on XCode 14.3.1 and macOS 13.4:
Command PhaseScriptExecution failed with a nonzero exit code
Before macOS system upgrade and XCode upgrade it worked properly. I have tried to downgrade XCode to 14.2 and it did not helped.
I have tried to clear build cache, clear build folder manually, update to latest cocoapods 1.12.1 and nothing helped. It is because of this line in pods frameworks script:
source="$(readlink -f "${source}")"
Only solution is commenting out this line, but it is a dirty fix. Does someone know how to fix this issue? Thank you a lot for any advise.