New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Copy Resources] Resolve various problems with xcasset bundles #3405
Conversation
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}" | ||
|
||
# Find all other xcassets (this unfortunately includes those of path pods and other targets). | ||
OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so this still won't work if your project contains XCAssets outside of $SRCROOT
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correct, but would you ever have XCAssets outside of $SRCROOT
?
We never supported this before, this should restore 0.35.0 behaviour but also not include assets for other build configurations/pods that are not used in the current target/configuration.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know we've never supported it, but Xcode technically allows you you have source files from anywhere on disk. Just thought I'd bring it up
Tried pulling this into Tumblr and at first glance, it does appear to fix that issues that have kept us from upgrading to 0.36 👏 |
0c3ccbc
to
19b1db6
Compare
(Don’t want to paste our whole
Our project’s platform support is: platform :ios, '7.1' The target I’m modifying to try and build frameworks for is: target :share_extension do
platform :ios, '8.0'
use_frameworks!
link_with 'Share'
pod 'SomePod'
pod 'SomeOtherPod'
end This is the pod it doesn’t seem to like: BRYEqualsBuilder |
@irace that's because the branch you've pulled down will also require changes from the master of http://github.com/CocoaPods/Core |
19b1db6
to
e062968
Compare
[Copy Resources] Resolve various problems with xcasset bundles
@kylef Yep, got it. Thank you! |
Works for Venmo codebase as well, thanks! Excited to start using 0.36. 🎊 |
Works for NYTimes code base!! Thanks a lot! |
@kylef I’m sure it’s hard to say, but do you have any rough idea of when this will hit a production version? Mulling whether or not we want to wait or merge my changes that use this branch into our application. |
|
Scratch that, in the next few hours. |
Allow support for pods with xcasset bundles using
:path
.Closes #1549
Closes #3384
Closes #3358