Last active
October 13, 2015 03:58
-
-
Save mbinna/4136335 to your computer and use it in GitHub Desktop.
Invoke mogenerator during Xcode build
This file contains hidden or 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
# The approach used here is adopted from the following source: | |
# http://nsscreencast.com/episodes/12-importing-into-core-data | |
# | |
# Since version 1.27, mogenerator automatically uses the current version of the data model | |
MODELS_DIR="MyModels" | |
DATA_MODEL="${MODELS_DIR}/MOPIncrementalStoreModel.xcdatamodeld" | |
# Homebrew stores mogenerator in /usr/local/bin | |
PATH=/usr/local/bin:${PATH} | |
mogenerator --template-var arc=true --model "${DATA_MODEL}" --output-dir "${MODELS_DIR}/" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment