Thanks to @vadimwe , I wrote this script as part of my CI/CD process of building with XCode.
find . -type f -name '*-frameworks.sh' -print0 | while IFS= read -r -d '' file; do
echo "Found file: $file"
sed -i.bak 's/source="$(readlink ("${source}"))"/source="$(readlink -f "${source}")"/g' "$file"
done