Generating resource_bundle_accessor, Type ‘Bundle’ has no member ‘module’

SPM generates the resource_bundle_accessor only if the corresponding target contains resources as the argument like:

    .target(
        name: "ChenzookKit",
        dependencies: ["Apollo"],
        resources: [.process("Resources")] // <- `copy` or `process` doesn't really matter 
    ),

Also, note that it should be a valid resource path.

AND❗️

The project MUST contains Resources inside the target’s Directory!

Example

AND❗️❗️

The Resources MUST contain something and MUST NOT be an empty directory

AND❗️❗️❗️

Don’t forget to build (cmd+b) the code to make the .module be created!

Leave a Comment

tech