Skip to content

Latest commit

 

History

History
23 lines (18 loc) · 981 Bytes

libSwiftPM.md

File metadata and controls

23 lines (18 loc) · 981 Bytes

libSwiftPM - SwiftPM as a Library

NOTE: The libSwiftPM API is currently unstable and may change at any time.

SwiftPM has a library based architecture and the top-level library product is called libSwiftPM. Other packages can add SwiftPM as a package dependency and create powerful custom build tools on top of libSwiftPM.

The SwiftPM repository contains an example that demonstrates the use of libSwiftPM in a Swift package. Use the following commands to run the example package:

$ git clone https://github.com/apple/swift-package-manager
$ cd swift-package-manager/Examples/package-info
$ make build
$ swift run

The Makefile in the example package contains commands to build the runtime libraries that are required for loading the Package.swift manifest files of Swift packages. The runtime libraries require (re)building only when the SwiftPM checkout is changed.