Steps to use a Swift package you are creating in the REPL. Assuming the package is named lump
.
- Add a dynamic library product to the manifest:
.library( name: "lump", type: .dyanmic, targets: ["lump"]),
- Build package as normal:
swift build
- Fire up the REPL as follows:
swift -I .build/debug -L .build/debug -llump