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

Bundle resources is not working through the SPM #400

Open
nfrydenholm opened this issue Mar 18, 2021 · 0 comments
Open

Bundle resources is not working through the SPM #400

nfrydenholm opened this issue Mar 18, 2021 · 0 comments

Comments

@nfrydenholm
Copy link

nfrydenholm commented Mar 18, 2021

I have tried to move from Pod to SPM.
With Pods I was using the latest one - 6.1.0.
With SPM I had to point to "master", as there is no version/tag that contains the Package.swift yet.

However, when I run the SPM version, the buttons aren't getting their expected images/icons. It looks like the resolving of images from the bundle isn't working as expected.

In SKButton this
po UIImage(named: "SKPhotoBrowser.bundle/images/\(imageName)", in: bundle, compatibleWith: nil) resolves to nil.

Some more info is here
https://developer.apple.com/documentation/swift_packages/bundling_resources_with_a_swift_package

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