Skip to content

Commit

Permalink
[Generator] use absolute xcasset file path in copy resource script
Browse files Browse the repository at this point in the history
Wrong `xcassets` path in generated `Pods-resources.sh` file. This bug
can be reproduced by adding [1PasswordExtension
spec](https://github.com/CocoaPods/Specs/blob/master/Specs/1PasswordExtension/1.1.2/1PasswordExtension.podspec.json)
to demo app.
  • Loading branch information
crazytonyli committed Mar 11, 2015
1 parent b3b12f4 commit 9cd9ce4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cocoapods/generator/copy_resources_script.rb
Expand Up @@ -128,7 +128,7 @@ def script
xcrun mapc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcmappingmodel`.cdm"
;;
*.xcassets)
XCASSET_FILES="$XCASSET_FILES '$1'"
XCASSET_FILES="$XCASSET_FILES '${PODS_ROOT}/$1'"
;;
/*)
echo "$1"
Expand Down

0 comments on commit 9cd9ce4

Please sign in to comment.