[Installation.md] Document installation via Accio

This commit is contained in:
Cihat Gündüz 2019-04-04 18:18:44 +02:00 committed by Max Howell
parent cf437b7010
commit 286225ffcd
No known key found for this signature in database
GPG Key ID: B9F11512CA1D895E

View File

@ -43,6 +43,27 @@ and if you like you could edit the PromiseKit `project.pbxproj` file during
`carthage bootstrap` to make this possible. This change was involuntary and due
to Xcode 10.2 dropping support for Swift 3.
## Accio
Add the following to your Package.swift:
```swift
.package(url: "https://github.com/mxcl/PromiseKit.git", .upToNextMajor(from: "6.8.4")),
```
Next, add `PromiseKit` to your App targets dependencies like so:
```swift
.target(
name: "App",
dependencies: [
"PromiseKit",
]
),
```
Then run `accio update`.
## SwiftPM
```swift