I have a Swift package containing two libraries, one is dynamic and the other one is static. The dynamic library has the static one as a dependency. Will the static library be embedded in the dynamic one's code only once or each time the dynamic library is linked?
products: [
.library(
name: "Library1",
type: .dynamic,
targets: ["Library1"]
),
.library(
name: "Library2",
type: .static,
targets: ["Library2"]
)
],
dependencies: [
],
targets: [
.target(
name: "Library1",
dependencies: [
"Library2"
]
)