Skip to content

Instantly share code, notes, and snippets.

@akkyie
Created March 28, 2018 10:07
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save akkyie/ac257b37f04951894ce52e6b0053a0bc to your computer and use it in GitHub Desktop.
Save akkyie/ac257b37f04951894ce52e6b0053a0bc to your computer and use it in GitHub Desktop.
for FRAMEWORK in `\find Carthage/Build/iOS/ -name "*.framework"`; do
PLIST=$FRAMEWORK/Info.plist
grep "<string>com.firebase.Firebase</string>" $PLIST >/dev/null
if [ $? = 0 ]; then
NAME=$(basename $FRAMEWORK .framework)
echo "Replacing bundle identifier of $NAME"
plutil -replace CFBundleIdentifier -string "com.firebase.Firebase.$NAME" $PLIST
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment