Skip to content
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

Development Pod can not retrieve resource_bundles #81

Open
victory1908 opened this issue May 30, 2021 · 0 comments
Open

Development Pod can not retrieve resource_bundles #81

victory1908 opened this issue May 30, 2021 · 0 comments

Comments

@victory1908
Copy link

victory1908 commented May 30, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant