Skip to content

Instantly share code, notes, and snippets.

@KevinBlock-GC
Created June 2, 2025 11:57
Show Gist options
  • Save KevinBlock-GC/7fe28a62010aa980575653bff5e266ab to your computer and use it in GitHub Desktop.
Save KevinBlock-GC/7fe28a62010aa980575653bff5e266ab to your computer and use it in GitHub Desktop.
echo "Copying GoogleService located at ${GOOGLE_SERVICE}"
if [ -z "${GOOGLE_SERVICE}" ]; then
echo "GOOGLE_SERVICE is unset or set to the empty string"
exit 1
fi
if [ ! -f "${GOOGLE_SERVICE}" ]; then
echo "GOOGLE_SERVICE does not exist"
exit 1
fi
PLIST_DESTINATION=${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}.app/GoogleService-Info.plist
cp "${GOOGLE_SERVICE}" "${PLIST_DESTINATION}"
echo "Copied ${GOOGLE_SERVICE} to ${PLIST_DESTINATION}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment