cocoapods-binary-cache icon indicating copy to clipboard operation
cocoapods-binary-cache copied to clipboard

Development Pod can not retrieve `resource_bundles`

Open victory1908 opened this issue 4 years ago • 0 comments

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? Screen Shot 2021-05-29 at 19 40 29

victory1908 avatar May 30 '21 18:05 victory1908