-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Assets NOT recompiled because Xcode skip run Copy Pod Resources
#7745
Comments
Kind of...I can see a problem potentially but would like to see a sample app here demonstrating the issue 100%. |
The Demo is very easy: https://github.com/Whirlwind/CocoaPodsTestAssets |
Test by Cocoapods v1.5.2 |
definitely a bug. investigated will be a bit tough to fix. See more here #7779 (comment) |
I meet this issue too, with envi:
|
@dnkoutso I experienced the same issue with a fresh project now and Xcode 10 when creating a sample project for #8136. For everyone who is curious of how to reproduce the issue, I have setup a detailed sample project here: The sample project actually shows 2 recent issues regarding asset catalog compilation. The test procedure is written in detail in the repo's README.md |
I meet this issue too, with envi: cocoapods 1.1.1 |
I have a fix for this. |
@Whirlwind I have a fix on branch |
actually its not there yet. |
CP add some
Input Files
andOutput Files
toCopy Pod Resources
inBuild Phases
. And Xcode will not run again if theInput Files
andOutput Files
not be changed, include their contents are not changed. It is good job.But, there are a logic which search assets will not be run again in the
Copy Pod Resources
script:There is a strange logic in the CP:
CP find all assets in my project directory, then run
actool
to compile my project's assets and Pod's assets together.actool
will generate aAssets.car
inxxx.app
, and instead of originAssets.car
which be generated by Xcode.eg:
Xcode will compile
Assets.xcassets
andIM.xcassets
toAssets.car
first. but it is a small file.The Pod will recompile
Assets.xcassets
,IM.xcassets
andShareSDK.xcassets
to a biggerAssets.car
to instead of the small one.It is OK, if there is NOT the
Input Files
andOutput Files
....When the
Input Files
andOutput Files
not be changed, Xcode will skip the script.If I update the
Assets.xcassets
, the Xcode will recompile theAssets.xcassets
andIM.xcassets
to a smallAssets.car
to overwrite the bigger which generated by Pods. But the Pod will not run the script again. So I will lose theShareSDK.xcassets
in myAssets.car
.I think the assets logic should be a Independent script.
Could you understand what I said?
The text was updated successfully, but these errors were encountered: