Giter Site home page Giter Site logo

Support for Linux about sendgrid-swift HOT 6 CLOSED

scottkawai avatar scottkawai commented on July 21, 2024
Support for Linux

from sendgrid-swift.

Comments (6)

JustinM1 avatar JustinM1 commented on July 21, 2024 1

FYI It works if you initialize your own session configuration. I forget the exact syntax but its something like let session = URLSession(configuration: URLSessionConfiguration.default)

from sendgrid-swift.

scottkawai avatar scottkawai commented on July 21, 2024

There's a few return type nuances that differ from OS X and Linux which I've been cleaning up, but there's a bigger road block. This library relies on Foundation's URLSession class to make the HTTP Requests. As of now, the open source version of Foundation (which Linux uses), hasn't fully implemented URLSession, resulting in errors like fatal error: shared is not yet implemented: file Foundation/NSURLSession/NSURLSession.swift. So until Foundation is updated, this library won't work on Linux.

from sendgrid-swift.

adrianbrink avatar adrianbrink commented on July 21, 2024

Damn, do you know what the timeline is for Foundation implementing them?

from sendgrid-swift.

scottkawai avatar scottkawai commented on July 21, 2024

Looking over swift.org, there doesn't appear to be a definitive timeline, but they are tracking the status of the project here.

from sendgrid-swift.

drewmccormack avatar drewmccormack commented on July 21, 2024

Perhaps related to this, I attempted to push to heroku, but the build failed. NSLocalizedString was not known. I am guessing Linux doesn't support that either.

from sendgrid-swift.

scottkawai avatar scottkawai commented on July 21, 2024

Version 1.0.0 adds experimental support for Linux, however since URLSession still remains incomplete, there's the potential for unexpected behavior. See the notes about Linux in the README.

from sendgrid-swift.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.