Skip to content
This repository has been archived by the owner on Apr 7, 2022. It is now read-only.

Not able to use as standalone package #374

Open
mrtksn opened this issue Mar 3, 2020 · 3 comments
Open

Not able to use as standalone package #374

mrtksn opened this issue Mar 3, 2020 · 3 comments

Comments

@mrtksn
Copy link

mrtksn commented Mar 3, 2020

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
Copy link
Member

0xTim commented Mar 5, 2020

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
Copy link
Author

mrtksn commented Mar 6, 2020

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
Copy link
Member

0xTim commented Mar 6, 2020

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants