Skip to content

Instantly share code, notes, and snippets.

@sundeepgupta
Created November 12, 2014 18:18
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 sundeepgupta/f137a2a9ebb377936cdd to your computer and use it in GitHub Desktop.
Save sundeepgupta/f137a2a9ebb377936cdd to your computer and use it in GitHub Desktop.
Mogenerator Build Script
cd ${SOURCE_ROOT}/${PROJECT_NAME}
# Installed via Homebrew
if [ -e /usr/local/bin/mogenerator ]
then
/usr/local/bin/mogenerator --template-var arc=true -m Model.xcdatamodeld/Model.xcdatamodel -M Models/Machine -H Models/Human
exit
fi
# Installed via .dmg
if [ -e /usr/bin/mogenerator ]
then
/usr/bin/mogenerator --template-var arc=true -m Model.xcdatamodeld/Model.xcdatamodel -M Models/Machine -H Models/Human
exit
fi
# For this to work, you need to have Xcode 5 installed. Maybe when Xcode 6 is publicly released (not Beta), this may change.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment