Skip to content

Commit 8dce6a9

Browse files
committed
Add README for installing with SwiftPM
1 parent 16dbd37 commit 8dce6a9

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,27 @@ Automatic Swift bindings generation for [`rust-lightning`](https://github.com/li
44

55
## Installation
66

7+
### Swift Package Manager
8+
To install using Swift Package Manager, add the following line to the depedencies array of your `Package.swift`:
9+
```
10+
.package(url: "https://github.com/lightningdevkit/ldk-swift/", exact: "0.0.110")
11+
```
12+
Be sure to also include "LightningDevKit" into your packages target like so:
13+
14+
```
15+
targets: [
16+
.target(
17+
name: "YourPackage",
18+
dependencies: [
19+
.product(name: "LightningDevKit", package: "ldk-swift")
20+
]),
21+
...
22+
]
23+
```
24+
25+
If you're importing directly into Xcode, just copy and paste `https://github.com/lightningdevkit/ldk-swift/` into the system dialog when you click "Add Package..."
26+
27+
### Manual Installation
728
In order to use the automatically generated bindings, simply drag `*.xcframework` file into an Xcode project.
829

930
The `*.xcframework` files are either available on

0 commit comments

Comments
 (0)