Comments (6)
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.
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.
Damn, do you know what the timeline is for Foundation implementing them?
from sendgrid-swift.
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.
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.
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)
- Getting error like Bad username/ password HOT 1
- NSURLSession/NSURLConnection HTTP load failed HOT 1
- How can i get an api key please ? HOT 1
- Linux Ubuntu 16 Compile Error HOT 2
- 400 bad request trying to use Dynamic Transactional Templates HOT 1
- Authentication error HOT 4
- sendAt Error HOT 2
- Plain text HOT 1
- Xcode 8 GM Swift 2.3 Compilation errors HOT 1
- Swift 3 Upgrade HOT 6
- Use of older version of AFnetworking HOT 2
- How to attach audio recorded file in attachment? HOT 1
- is there a replyto option aswell in personalization? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sendgrid-swift.