Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add dynamic library support in SPM package #312

Open
apps4everyone opened this issue Apr 20, 2022 · 1 comment
Open

Add dynamic library support in SPM package #312

apps4everyone opened this issue Apr 20, 2022 · 1 comment

Comments

@apps4everyone
Copy link

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
Copy link
Author

added a PR #313

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant