Skip to content

Instantly share code, notes, and snippets.

@pnc
Created November 8, 2012 12:39
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pnc/4038557 to your computer and use it in GitHub Desktop.
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
*.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"
;;
@panupan
Copy link

panupan commented Feb 13, 2013

Seems to work good. Hopefully they'll get the full solution for CocoaPods/CocoaPods#650 soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment