Skip to content

Commit 68fac7a

Browse files
author
Daniel
authored
Add SPM installation to readme (airsidemobile#224)
* Update readme * Format package.swift * Fix typo
1 parent e02de2e commit 68fac7a

2 files changed

Lines changed: 7 additions & 9 deletions

File tree

Package.swift

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,10 @@ let package = Package(
55
name: "JOSESwift",
66
platforms: [.iOS(.v10)],
77
products: [
8-
.library(
9-
name: "JOSESwift",
10-
targets: ["JOSESwift"])
11-
],
12-
dependencies: [
8+
.library(name: "JOSESwift", targets: ["JOSESwift"])
139
],
10+
dependencies: [],
1411
targets: [
15-
.target(
16-
name: "JOSESwift",
17-
path: "JOSESwift"
18-
)
12+
.target(name: "JOSESwift", path: "JOSESwift")
1913
],
2014
swiftLanguageVersions: [.v5])

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,10 @@ github "airsidemobile/JOSESwift"
109109

110110
Then build it by running `carthage update` and drag the built framework into your Xcode project. More documentation on using Carthage can be found [here](https://github.com/Carthage/Carthage).
111111

112+
### Swift Package Manager
113+
114+
To integrate JOSESwift in your Xcode project as a Swift package, follow Apple's article on how to [add package dependencies to your app](https://developer.apple.com/documentation/xcode/adding_package_dependencies_to_your_app).
115+
112116
## Usage
113117

114118
JOSESwift covers three functional aspects:

0 commit comments

Comments
 (0)