Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[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 44cde6f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/cocoapods/generator/copy_resources_script.rb
Expand Up @@ -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
Expand Down

0 comments on commit 44cde6f

Please sign in to comment.