Dan H desires to attract extra consideration to this query:
The answer should work for my particular use case.
How do I exploit the AppIcon from Property.xcassets of a useful resource bundle of a personal cocodpod? I wish to ignore whats in my apps venture file for the AppIcon, and have this asset come from a personal pod.
My setup is I’ve an app with a couple of completely different targets for various flavours of the app.
App
FlavourA
FlavourB
The App’s pod file pulls in a personal pod of mine which accommodates the entire fonts, property, colors and so forth. This non-public pod is a shared repo which our iOS and Android app shares in order that we now have all the pieces in a single place and to keep away from duplication of sources and so forth.
The podspec for this non-public pod declares these subspec sources like this:
flaA.resource_bundle = { “STYLES_APP_BUNDLE” => [
“Styles/FlavourA/*.{json}”,
“Styles/FlavourA/*.{xcassets,png,jpeg,jpg}”,
“Styles/FlavourA/Fonts/*.{ttf,otf,ttc}”
]
}
flaB.resource_bundle = { “STYLES_APP_BUNDLE” => [
“Styles/FlavourB/*.{json}”,
“Styles/FlavourB/*.{xcassets,png,jpeg,jpg}”,
“Styles/FlavourB/Fonts/*.{ttf,otf,ttc}”
]
}
I declare completely different subspecs for the completely different flavours of which my apps Podfile hyperlinks towards the right subspec relying on the app goal. e.g. Challenge Goal FlaA pulls in subspec flaA. Challenge Goal FlaB pulls in subspec flaB. (this works superb)
The non-public pod has a Property.xcassets which is added right into a resource_bundle (as proven above). On this Property.xcassets I’ve AppIcon added with the png property inside.
The difficulty I’ve is that my App venture additionally has a Property.xcassets which has an “AppIcon” entry however with no pictures in it. If I take away the entry, the app will not compile. So I believe I would like the entry at the very least?
What I need although is after I run pod replace (or some kind of automation / construct section) I would love my app’s Property.xcassets AppIcon entry to be populated with the app icons from my non-public pods useful resource bundle. (or the generated Property.automotive populated with the right icons)
Is that this doable? Has anybody achieved one thing comparable?
Thanks for taking the time to learn. Your assist a lot appreciated as I have been caught on this some time.