Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
cocoapods
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gengmeiios
cocoapods
Commits
f3629b48
Commit
f3629b48
authored
Nov 06, 2013
by
Eloy Durán
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1556 from Widgetlabs/fix-actool-wrapper-name
Corrected wrong output path passed to actool for Apps.
parents
14318ff5
1004d474
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
CHANGELOG.md
CHANGELOG.md
+6
-0
copy_resources_script.rb
lib/cocoapods/generator/copy_resources_script.rb
+1
-1
No files found.
CHANGELOG.md
View file @
f3629b48
...
...
@@ -20,6 +20,12 @@ To install or update CocoaPods see this [guide](http://docs.cocoapods.org/guides
###### Bug Fixes
*
Compiling
`xcassets`
with
`actool`
now uses
`UNLOCALIZED_RESOURCES_FOLDER_PATH`
instead of
`PRODUCT_NAME.WRAPPER_EXTENSION`
as output directory as it is more
accurate and allows the project to overwrite
`WRAPPER_NAME`
.
[
Marc Knaup
](
https://github.com/fluidsonic
)
[
#1556
](
https://github.com/CocoaPods/CocoaPods/pull/1556
)
*
Added a condition to avoid compiling xcassets when
`WRAPPER_EXTENSION`
is undefined, as it would be in the case of static libraries. This prevents
trying to copy the compiled files to a directory that does not exist.
...
...
lib/cocoapods/generator/copy_resources_script.rb
View file @
f3629b48
...
...
@@ -140,7 +140,7 @@ EOS
if [[ -n "${WRAPPER_EXTENSION}" ]] && [ `xcrun --find actool` ] && [ `find . -name '*.xcassets' | wc -l` -ne 0 ]
then
DEVICE=`if [ "${TARGETED_DEVICE_FAMILY}" -eq 1 ]; then echo "iphone"; else echo "ipad"; fi`
find "${PWD}" -name "*.xcassets" -print0 | xargs -0 actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${IPHONEOS_DEPLOYMENT_TARGET}" --target-device "${DEVICE}" --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${
PRODUCT_NAME}.${WRAPPER_EXTENSION
}"
find "${PWD}" -name "*.xcassets" -print0 | xargs -0 actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${IPHONEOS_DEPLOYMENT_TARGET}" --target-device "${DEVICE}" --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${
UNLOCALIZED_RESOURCES_FOLDER_PATH
}"
fi
EOS
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment