Skip to content

Instantly share code, notes, and snippets.

@MrSkwiggs
Created August 29, 2019 14:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MrSkwiggs/e5b28fea20ca47fbbb97242ac4949a23 to your computer and use it in GitHub Desktop.
Save MrSkwiggs/e5b28fea20ca47fbbb97242ac4949a23 to your computer and use it in GitHub Desktop.
A shell script build phase to add to your projects for automatic localization manager generation!
if [ -f "LocalizationManagerGenerator.swift" ]
then
if [ "$CONFIGURATION" = "Debug" ]
then
echo "Running LocalizationManagerGenerator script"
./LocalizationManagerGenerator.swift <your project> <output directory>
fi
else
echo "warning: Cannot automatically generate LocalizationManagers, script not found"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment