Due to the heroic efforts of @SlaunchaMan, there's a WIP PR up that gets Alamofire mostly working on Linux, including tests! However, it's not really in a releasable state, even if were were ready for it, due to a few issues around Foundation on Linux, namely:
URLSessionTaskMetricsis still completely missing, leading to a bifurcation of a lot of APIs which expect it.
- There is no
InputStream-based uploading using
URLSessionUploadTask, leading to further bifurcation issues.
Securityframework means all of our error handling and other logic around trust management must be avoided.
- A behavioral difference in
resume()multiple times. On Apple platforms it's fine but on Linux it produces a runtime crash complaining about duplicate
- Lack of IANA
String.Encodingparsing, meaning we have to write our own mapping.
- A few API sync issues between Foundation on 2019 Apple platforms and Foundation in 5.1 on Linux.
- Replacement for
Bundleaccess to containing executable name and such, for our
Those issues aside, I believe it is usable and once workarounds aren't so severe, we hope to support it officially.