#!/bin/bash script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" # Get the release string from ${PROJECT_DIR}/VERSION release_version="$(cat "${script_dir}/../VERSION")" echo "Updating version to '${release_version}'" # Generate Version.xcconfig to use to set the framework version string cat > ${script_dir}/../BuildConfigurations/Version.xcconfig < "${script_dir}/../StripeCore/StripeCore/Source/API Bindings/StripeAPIConfiguration+Version.swift" < $podspec.copy mv $podspec.copy $podspec echo "Successfully updated '$(basename $podspec)'" done