Hello!
We have some resources included as part of our test target like so:
However, when running the following command:
results in a "Type 'Bundle' has no member 'module'" compilation error.
Is this a known issue, or am I approaching this incorrectly if I want to have a project for the package?
Currently using Xcode 12 beta 2
We have some resources included as part of our test target like so:
Code Block .testTarget( name: "MyProjectTests", dependencies: ["MyProject"], resources: [.process("Assets/Test_5s.mov")])
However, when running the following command:
the generated package does not include the assets. Additionally the code to access the resources won't compile because there is no auto-generated file to provide the 'module' extension for 'Bundle'.swift package generate-xcodeproj
Code Block Bundle.module.url(forResource: "Test_5s", withExtension: "mov")
results in a "Type 'Bundle' has no member 'module'" compilation error.
Is this a known issue, or am I approaching this incorrectly if I want to have a project for the package?
Currently using Xcode 12 beta 2
Swift package resources, including access through Bundle.module, are available when directly using the package through the Swift Package integration in Xcode. They are not available through generated Xcode projects.