You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
603 B
24 lines
603 B
// swift-tools-version: 5.9
|
|
import PackageDescription
|
|
|
|
let package = Package(
|
|
name: "music_service",
|
|
platforms: [.iOS("16.0")],
|
|
products: [
|
|
.library(name: "music-service", targets: ["music_service"])
|
|
],
|
|
dependencies: [
|
|
// 例如,添加 Alamofire 作为网络请求库
|
|
.package(url: "https://github.com/Alamofire/Alamofire.git", from: "5.6.0")
|
|
],
|
|
targets: [
|
|
.target(
|
|
name: "music_service",
|
|
dependencies: [
|
|
// 指定使用 Alamofire 库
|
|
.product(name: "Alamofire", package: "Alamofire")
|
|
],
|
|
path: "Sources/music_service"
|
|
)
|
|
]
|
|
)
|