Skip to content

Commit

Permalink
Merge pull request #794 from MartinJNash/mjn/update-readme-spm
Browse files Browse the repository at this point in the history
Added SPM section to README
  • Loading branch information
ccgus committed May 29, 2020
2 parents 61e51fd + f20ff85 commit 2ca2cad
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,21 @@ $ carthage update

You can then configure your project as outlined in Carthage's [Getting Started](https://github.com/Carthage/Carthage#getting-started) (i.e. for iOS, adding the framework to the "Link Binary with Libraries" in your target and adding the `copy-frameworks` script; in macOS, adding the framework to the list of "Embedded Binaries").

### Swift Package Manager

Declare FMDB as a package dependency.
```swift
.package(
name: "FMDB",
url: "https://github.com/ccgus/fmdb",
.upToNextMinor(from: "2.7.7")),
```

Use FMDB in target dependencies
```swift
.product(name: "FMDB", package: "FMDB")
```

## FMDB Class Reference:
https://ccgus.github.io/fmdb/html/index.html

Expand Down

0 comments on commit 2ca2cad

Please sign in to comment.