我正在尝试使用 xCode11 beta 7构建具有外部依赖项 ( CoreStore ) 的swift 包。我的包针对 iOS11+,它在Package.swift以下位置声明:
// swift-tools-version:5.1
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "Storages",
platforms: [.iOS(.v11)],
products: [
// Products define the executables and libraries produced by a package, and make them visible to other packages.
.library(
name: "Storages",
targets: ["Storages"]),
],
dependencies: [
// Dependencies declare other packages that this package depends on.
.package(url: "https://github.com/JohnEstropia/CoreStore.git", from: "6.3.0") …Run Code Online (Sandbox Code Playgroud)