Permalink
Browse files

Merge pull request #597 from nschum/frameworkcopy

Support for copying frameworks to the app bundle.
  • Loading branch information...
2 parents 2421ef0 + 2f0eca4 commit 2a80b8c1979314374fb85772bca5b846bc0e4ffe @alloy alloy committed Oct 24, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/cocoapods/generator/copy_resources_script.rb
@@ -15,6 +15,10 @@ class CopyResourcesScript
echo "ibtool --errors --warnings --notices --output-format human-readable-text --compile ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename $1 .xib`.nib ${PODS_ROOT}/$1 --sdk ${SDKROOT}"
ibtool --errors --warnings --notices --output-format human-readable-text --compile "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename $1 .xib`.nib" "${PODS_ROOT}/$1" --sdk "${SDKROOT}"
;;
+ *.framework)
+ echo "rsync -rp ${PODS_ROOT}/$1 ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
+ rsync -rp "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
+ ;;
*)
echo "cp -R ${PODS_ROOT}/$1 ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
cp -R "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"

0 comments on commit 2a80b8c

Please sign in to comment.