If a Swift package has a .xcodeproj file, it's not possible to use resources since the error Type 'Bundle' has no member “module” always comes up when building. It's possible to just not use a .xcodeproj file, but in some cases it's unavoidable.
For example, if you create a Swift Package which relies on UIKit, it's not possible to use `swift test` to run CLI tests.
This can solved by generating a .xcodeproj:
However adding resources to the package then ends up with the error:
Type 'Bundle' has no member 'module'
Type of expression is ambiguous without more context