devicekit / DeviceKit

DeviceKit is a value-type replacement of UIDevice.
MIT License
4.45k stars 433 forks source link

Add dynamic library support in SPM package #312

Open apps4everyone opened 2 years ago

apps4everyone commented 2 years ago

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 Package@swift-5.5.swift 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

apps4everyone commented 2 years ago

added a PR https://github.com/devicekit/DeviceKit/pull/313