Skip to content

Instantly share code, notes, and snippets.

@litoarias
Last active February 7, 2022 13:44
Show Gist options
  • Save litoarias/eb2f3819ad89a17c7f1aaf16a44a52e2 to your computer and use it in GitHub Desktop.
Save litoarias/eb2f3819ad89a17c7f1aaf16a44a52e2 to your computer and use it in GitHub Desktop.
Binary target SPM
// swift-tools-version:5.5
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let version = "1.0.0"
let moduleName = "NetworkModule"
let checksum = "8f42f67a0665798e1c4e149c73a36fb9dddc062bc90e3b4e077ea571613ddda1"
let package = Package(
name: moduleName,
platforms: [
.iOS(.v13) //, .macCatalyst(.v15), .macOS(.v10_15)
],
products: [
.library(
name: moduleName,
targets: [moduleName]
)
],
targets: [
.binaryTarget(
name: moduleName,
url: "https://github.com/litoarias/NetworkModuleDistribution/releases/download/\(version)/\(moduleName).xcframework.zip",
checksum: checksum
)
]
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment