Commit 9cd9ce41 authored by Tony Li's avatar Tony Li

[Generator] use absolute xcasset file path in copy resource script

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.
parent b3b12f4b
...@@ -128,7 +128,7 @@ install_resource() ...@@ -128,7 +128,7 @@ install_resource()
xcrun mapc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcmappingmodel`.cdm" xcrun mapc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcmappingmodel`.cdm"
;; ;;
*.xcassets) *.xcassets)
XCASSET_FILES="$XCASSET_FILES '$1'" XCASSET_FILES="$XCASSET_FILES '${PODS_ROOT}/$1'"
;; ;;
/*) /*)
echo "$1" echo "$1"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment