Generating resource_bundle_accessor, Type 'Bundle' has no member 'module'

前端 未结 3 935
死守一世寂寞
死守一世寂寞 2020-12-16 17:00

Some times Xcode can not determine the module parameter in the Bundle.

Type \'Bundle\' has no member \'module\'

My inve

3条回答
  •  被撕碎了的回忆
    2020-12-16 17:25

    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` deson't really matter 
        ),
    

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

    AND❗️

    The project MUST actaully contains Resources inside the target's Directory!

提交回复
热议问题