Create a local SPM in your project
Add all your dependency packages into the Package file
e.x.
import PackageDescription
let package = Package(
name: "Dependencies",
products: [
.library(
name: "Dependencies",
targets: ["Dependencies"]),
],
dependencies: [
.package(url: "https://package_url.git",
exact: "0.0.1"),
],
targets: [
.target(
name: "Dependencies",
dependencies: [
.product(name: "package_name", package: "package_name"),
]
),
.testTarget(
name: "DependenciesTests",
dependencies: ["Dependencies"]),
]
)
Go to target -> General -> Frameworks, Libraries, and Embedded Content
add Dependencies
close Xcode and apply this commit to all branches
reopen Xcode