Skip to content

Add dynamic library support in SPM package #312

Open
@apps4everyone

Description

@apps4everyone

Hey, currently the SPM Package.swift has the default static framework setting from SPM.

The question would be how to consume it as dynamic one?
Would it be possible to add this in a new [email protected] with:

.library(
            name: "DeviceKitDynamic",
            type: .dynamic,
            targets: ["DeviceKit"]
)

This would allow to integrate DeviceKit also as dynamic framework without having duplicate linking errors when used in several places.

I am open for best advices. Maybe this is not possible or there is another better solution.
Thank you
Stefan

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions