Created
October 9, 2021 09:16
-
-
Save Moistbobo/cfd7490d965928f398f226e67df79e25 to your computer and use it in GitHub Desktop.
RN - IOS GoogleInfo.plist build phase copy script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PATH_TO_CONFIG=$SRCROOT/Config/GoogleService-Info-$PRODUCT_BUNDLE_IDENTIFIER.plist | |
FILENAME_IN_BUNDLE=GoogleService-Info.plist | |
BUILD_APP_DIR=${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}.app | |
echo cp $PATH_TO_CONFIG "$BUILD_APP_DIR/$FILENAME_IN_BUNDLE" | |
cp $PATH_TO_CONFIG "$BUILD_APP_DIR/$FILENAME_IN_BUNDLE" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this as an additional Build Phase script in the xcode project of a react native app.
Replace
PATH_TO_CONFIG
with the correct path to the GoogleService-Info file. Note that the script will fail if this path is incorrect.source: https://stackoverflow.com/a/50731611/13772644