-
Notifications
You must be signed in to change notification settings - Fork 225
Description
Can we change the linking type to .dynamic?
.library(name: "NordicDFU", type: .dynamic, targets: ["NordicDFU"])
I have a XCFramework, that depends on NordicDFU but it cannot link to NordicDFU at runtime because NordicDFU is not linked with dynamic type.
On apple documentation it says this:
Leave this parameter so Swift Package Manager can choose between static or dynamic linking (recommended).
But on the other part it says this:
A library’s product can be either statically or dynamically linked. It’s recommended that you don’t explicity declare the type of library, so Swift Package Manager can choose between static or dynamic linking based on the preference of the package’s consumer.
It is kind of confusing as it recommends the dynamic linking but It also says to let the type as nil.
https://developer.apple.com/documentation/packagedescription/product/library(name:type:targets:)
Note: ZIPFoundation would need to have dynamic linking too.