Created
July 2, 2020 10:27
-
-
Save besilva/79557f9d8fe98bd129e4750860f81ee0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// swift-tools-version:5.3 | |
import PackageDescription | |
let package = Package( | |
name: "MyLibrary", | |
platforms: [ | |
.macOS(.v10_14), .iOS(.v13), .tvOS(.v13) | |
], | |
products: [ | |
// Products define the executables and libraries a package produces, and make them visible to other packages. | |
.library( | |
name: "MyLibrary", | |
targets: ["MyLibrary", "SomeRemoteBinaryPackage", "SomeLocalBinaryPackage"]) | |
], | |
dependencies: [ | |
// Dependencies declare other packages that this package depends on. | |
], | |
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: "MyLibrary" | |
), | |
.binaryTarget( | |
name: "SomeRemoteBinaryPackage", | |
url: "https://url/to/some/remote/xcframework.zip", | |
checksum: "The checksum of the ZIP archive that contains the XCFramework." | |
), | |
.binaryTarget( | |
name: "SomeLocalBinaryPackage", | |
path: "path/to/some.xcframework" | |
) | |
.testTarget( | |
name: "MyLibraryTests", | |
dependencies: ["MyLibrary"]), | |
] | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment