加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Package.swift 1.71 KB
一键复制 编辑 原始数据 按行查看 历史
zhxf 提交于 2023-10-10 17:10 . 适配xcode15 更新部分依赖库
// swift-tools-version: 5.6
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "BPBleOTA",
platforms: [.iOS(.v12),.macOS(.v10_14)],
products: [
// Products define the executables and libraries a package produces, and make them visible to other packages.
.library(
name: "BPBleOTA",
type: .dynamic,
targets: ["BPBleOTA"]),
],
dependencies: [
// Dependencies declare other packages that this package depends on.
// .package(url: /* package url */, from: "1.0.0"),
.package(url: "https://github.com/NordicSemiconductor/IOS-nRF-Connect-Device-Manager.git",
exact:"1.3.3"
),
.package(
url: "https://github.com/NordicSemiconductor/IOS-DFU-Library",exact:"4.13.0"
)
],
targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
// Targets can depend on other targets in this package, and on products in packages this package depends on.
.target(
name: "BPBleOTA",
dependencies: [
//"iOSMcuManagerLibrary",
//"NordicDFU"
.product(name: "iOSMcuManagerLibrary", package: "IOS-nRF-Connect-Device-Manager"),
.product(name: "NordicDFU", package: "IOS-DFU-Library"),
],
path: "Sources"//,
// exclude:["Info.plist"]
),
.testTarget(
name: "BPBleOTATests",
dependencies: ["BPBleOTA"]),
],
swiftLanguageVersions: [.v5]
)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化