cocoapods-binary-cache
cocoapods-binary-cache copied to clipboard
Development Pod can not retrieve `resource_bundles`
Hi thanks for the awesome work,
I have successfully adapt the cache for third party frame work and development pod without assets folder and xib file
When it come to development pod pod which has assets folder and xib file. I can not use spec.resources as it will be duplicate after prebuild (See attachment image). i can only use resource_bundles
spec.resource_bundles = {
"#{spec.name}" => [
"#{spec.name}/**/*.{lproj,xcdatamodeld,xib,json,ttf,xcassets}",
],
}
with above spec i can see assets folder and xib files are copied into development pod The problem is i can not invoke get my image and nib with normal way
for xib
super.init(nibName: "SplashViewController",
bundle: Bundle(for: SplashViewController.self))
and image
UIImage(named: name, in: Bundle(for: aClass), compatibleWith: nil)
the 2 above normal method will not work anymore. Any suggestion that we can use cache for development pod with assets and xib?
