-
Notifications
You must be signed in to change notification settings - Fork 20
Linux Support #121
Comments
@rhyshort Hello, it is our understanding that with the latest development snapshot (8/25), libdispatch, NSURLSession and friends are now available: https://swift.org/download/#snapshots. |
Yes they are available, there a few niggles to get through, so far I've got library compiling on Linux, just need to fix up the tests. |
That's great! Looking forward to using the Cloudant SDK on linux. |
Being able to test on Linux is currently blocked by SR-2170. |
Bad news on this. With the release of Swift 3, there are still issues that we can't overcome. The biggest being unable to link due to SR-2170. Which has yet to be fixed (error attached below). I think we will need to wait for a few patch releases before we can add linux support as it currently stands. Error:
|
The related SR-1901 has been fixed. Not sure if it would fix the issue throughout foundation without verification however. There are also a couple of issues with |
Small update, all of HTTPCookieStorage is currently unimplemented see https://github.com/apple/swift-corelibs-foundation/blob/7400a09/Foundation/NSHTTPCookieStorage.swift |
Yes, we'll start looking at HTTPCookieStorage. |
HTTPCookieStorage PR swiftlang/swift-corelibs-foundation#672 its been open quite a while and doesn't look like its going to get merged anytime soon. |
With swiftlang/swift-corelibs-foundation#836 merged, one less barrier to running on linux. |
Is this fixed in Swift 3.1? |
No not yet, cookie support hasn't been merged so that is still a blocker. |
The linux testing will need to be expanded from just 14.04, to cover:
should be straight forward to add to the matrix. |
I've just merged the Once Swift 4 is released we'll be able to declare Linux support! |
Thanks @ianpartridge |
As of today it compiles on both Swift 3 and 4, so hopefully we can support both. |
Now that Swift 4 is released, what's the status of this issue? |
There are currently test failures that need investigating: https://travis-ci.org/cloudant/swift-cloudant/jobs/277632910 |
Hmm, that's annoying, it must be a regression somewhere. |
So, any updates? |
I'm closing this ticket, the Linux support work in this library has been done for quite a while (although not released). There is a remaining issue with the |
With the merging of
URLSession
into swift corelibs, (See swiftlang/swift-corelibs-foundation#426) it should be possible to compile on Linux.Once a snapshot is published we should take the opportunity to see if we compile on linux and fix and issues that arise.
The text was updated successfully, but these errors were encountered: