Hello, I am struggling with providing assets via Swift Package Manager and an assets folder.
I have a swift package "A" that has an assets folder with a "image". I am able to build a preview and see the image in SPM "A". 👍🏻
Now I have a swift package "B" that depends on "A". In "B" I would like to have access of the "image". When I build and preview in "B" I get the following error: "Fatal error: unable to find bundle named [redacted]: file [redacted]/resource_bundle_accessor.swift", line 27" 😢 please help.
I am exposing the image via a public var that returns Image("image", bundle: .module)
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags:
Xcode Previews
Asset Catalog
Swift Packages
wwdc20-10169