This is specifically for iOS.
GOOGLESERVICE_INFO_PLIST=GoogleService-Info.plist
PATH_TO_CONFIG_DEV=$SRCROOT/Firebase/Dev/$GOOGLESERVICE_INFO_PLIST
PATH_TO_CONFIG_PROD=$SRCROOT/Firebase/Prod/$GOOGLESERVICE_INFO_PLIST
BUILD_APP_DIR=${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}.app
if [ "${CONFIGURATION}" == "Release" ]
then
echo "Using ${GOOGLESERVICE_INFO_PROD}"
cp "${PATH_TO_CONFIG_PROD}" "$BUILD_APP_DIR/$PLIST_DESTINATION"
else
echo "Using ${GOOGLESERVICE_INFO_DEV}"
cp "${PATH_TO_CONFIG_DEV}" "$BUILD_APP_DIR/$PLIST_DESTINATION"
fi