For Swift Package Manager, it might look something like that:
let package = Package(
name: "SomeLib",
platforms: [
.iOS(.v13)
],
products: [
// Products define the executables and libraries a package produces, and make them visible to other packages.
.library(
name: "SomeLib",
targets: ["SomeLib"]),
.library(
name: "SwiftSomeLib",
targets: ["SwiftSomeLib"]
),
],
targets: [
.binaryTarget(
name: "SomeLib",
url: "<https://some.com/somelib-1.0.0-beta1-xcframework.zip>",
checksum: "1f9d0d78f358dbf17cdebdf1766dd49a6a1bb272d841d9cc30a725a1f44ab5f2"
),
.target(
name: "SwiftSomeLib",
dependencies: ["SomeLib"],
path: "shared/src/swift",
exclude: [],
sources: [
"SwiftSomeLib.swift" // Swift file
]
)
]
)