Quantcast
Channel: Package Manager - Swift Forums
Viewing all articles
Browse latest Browse all 180

Difficulty Accessing Resources in a Package's Bundle

$
0
0

Based on the docs, I tried to retrieve the URL of some resources in my package, but it seems to be impossible to do so ...

Doesn't matter if I use Bundle.module or Bundle.main to retrieve the URL of a file in a target of my package. In both cases, url(forResource: String, withExtension: String?) returned nil.

You can try the step by step guid as explained in docs in any package that you'd like, but you'll probably bump into the same issue as I did.

7 posts - 3 participants

Read full topic


Viewing all articles
Browse latest Browse all 180

Trending Articles