Closed Buratti closed 4 years ago
APNSwift is not compatible with Vapor 3 because Vapor 3 is nio 1, and APNSwift is Nio 2
You can use Vapor 4 though :)
Oh, I see. Thanks :)
Sorry for the confusion. There is a commit that works with Nio 1 but I would not recommend it.
What I would do, if you’re using vapor 3, is spin up a vapor 4 micro service that accepts POST and then use vapor 3 to make PPST requests to it. :)
Describe the bug Package resolution never ends if used together with Vapor default template.
To Reproduce Steps to reproduce the behavior:
vapor new project
.package(url: "https://github.com/kylebrowning/APNSwift.git", .upToNextMinor(from: "1.3.0"))
to the dependencies.swift package resolve
Fetching https://github.com/apple/swift-nio-http2.git
Platform: Tested both on macOS 10.15.1 and Ubuntu 18.04
Swift Version: macOS: Apple Swift version 5.1.2 (swiftlang-1100.0.278 clang-1100.0.33.9) Target: x86_64-apple-darwin19.0.0 Ubuntu: Swift version 5.1 (swift-5.1.2-RELEASE) Target: x86_64-unknown-linux-gnu
Vapor toolbox version: 3.1.10
Running
swift build
will output the following error:where
###
can be both APNSwift or Vapor depending on the order in which you put them in yourdependencies
.