Created
July 6, 2011 13:47
-
-
Save casademora/1067256 to your computer and use it in GitHub Desktop.
Regenerate Core Data files in an Xcode project
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
## Add this as a 'Run Script' step in your Xcode Project prior to the compile step | |
mogen=`which mogenerator` | |
if [[ -x $mogen ]]; then | |
echo "Updating data objects using $mogen" | |
cd "$PROJECT_DIR/Model" && $mogen -m MyProject.xcdatamodeld/MyProject.xcdatamodel -M ./generated -H ./entities | |
fi |
Author
casademora
commented
Dec 7, 2012
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment