Skip to content

Commit 40f1f66

Browse files
authored
docs: update installation via SPM (#388)
1 parent 78fab32 commit 40f1f66

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

README.md

+9-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,15 @@ Long-term goals are:
2020
This repository primarily uses Swift package manager as its build tool, so we recommend using that as well. Xcode comes with [built-in support](https://developer.apple.com/documentation/xcode/adding-package-dependencies-to-your-app) for Swift packages. From the menu bar, goto: `File > Add Packages...` If you manage packages via a `Package.swift` file, simply add `secp256k1.swift` as a dependencies' clause in your Swift manifest:
2121

2222
```swift
23-
.package(url: "https://github.com/GigaBitcoin/secp256k1.swift.git", from: "0.11.0"),
23+
.package(url: "https://github.com/GigaBitcoin/secp256k1.swift.git", from: "0.12.0"),
24+
```
25+
26+
Include `secp256k1` as a dependency for your executable target:
27+
28+
```swift
29+
.target(name: "<target>", dependencies: [
30+
.product(name: "secp256k1", package: "secp256k1.swift")]),
31+
]),
2432
```
2533

2634
Try in a [playground](spi-playgrounds://open?dependencies=GigaBitcoin/secp256k1.swift) using the [SPI Playgrounds app](https://swiftpackageindex.com/try-in-a-playground) or 🏟 [Arena](https://github.com/finestructure/arena)

0 commit comments

Comments
 (0)