Created
November 8, 2012 12:39
-
-
Save pnc/4038557 to your computer and use it in GitHub Desktop.
Get CocoaPods (almost) to compile xcdatamodel resources as it copies them, like it does XIBs
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
*.xcdatamodel) | |
echo "`basename $1 .xcdatamodel`.mom" | |
echo "`basename ${1} .xcdatamodel`.mom" | |
xcrun momc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename ${1} .xcdatamodel`.mom" | |
;; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Seems to work good. Hopefully they'll get the full solution for CocoaPods/CocoaPods#650 soon.