Permalink
Browse files

[CopyResourcesScript] Do not discard `.xcassets` from the main projec…

…t if there are any pods containing `.xcassets`.
  • Loading branch information...
lembacon committed Mar 21, 2015
1 parent cfec15d commit 44cde6feb61360bc530d85ea52a418ffe023c7ed
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/cocoapods/generator/copy_resources_script.rb
@@ -169,6 +169,7 @@ def script
TARGET_DEVICE_ARGS="--target-device mac"
;;
esac
while read line; do XCASSET_FILES="$XCASSET_FILES '$line'"; done <<<$(find "$PWD" -name "*.xcassets" | egrep -v "^$PODS_ROOT")
echo $XCASSET_FILES | xargs actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${IPHONEOS_DEPLOYMENT_TARGET}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
fi
EOS

0 comments on commit 44cde6f

Please sign in to comment.