vapor / http

🚀 Non-blocking, event-driven HTTP built on Swift NIO.
MIT License
240 stars 65 forks source link

Not able to use as standalone package #374

Open mrtksn opened 4 years ago

mrtksn commented 4 years ago

Hi, I wanted to use it as a standalone package however XCode complains that cannot import HTTP.

I followed these steps:

1) Create a new iOS project with SwiftUI in XCode 11.3 2) File->Package->Add Package Dependency->complete adding the package using the default settings

The package looks installed alongside with its dependencies which are "Core, swift-nio-ssl-support, swift-nio-zlib-support, SwiftNIO, SwiftNIO SSL"

When I try to import HTTP like this

import HTTP

XCode would complain

No such module 'HTTP'

I tried to install other 3.rd party packages to be sure that it's not an issue with XCode and other packages were successfully installed and were usable.

0xTim commented 4 years ago

Which version of HTTP did you pull in? It looks like this library is deprecated so interested to know what you're doing with it?

mrtksn commented 4 years ago

The version is 3.3.2

Is this library really deprecated? I was looking to use it as a simple HTTP library instaed of something like Alamofire.

BTW I had the same issue with websocket-kit library, that one also would not be possible to import.

0xTim commented 4 years ago

What platform are you trying to make this work on? Theoretically it should work, but it might be a SwiftPM/Xcode issue.

In terms of being deprecated - Vapor 3 will still work and have it's maintenance period but this library is no longer used in Vapor 4 from the looks of it