Skip to content

Conversation

@Drewsmits
Copy link
Contributor

Couldn't start Echo server with ssl on linux due to String init method not being implemented yet. I'd get the following crash.

.build/debug/Echo serve -ssl
[".build/debug/Echo", "serve", "-ssl"]
Starting secure server
fatal error: init(contentsOf:usedEncoding:) is not yet implemented: file Foundation/NSString.swift, line 1251
Illegal instruction

Looks like the linux version of NSString.init(contentsOfFile:) hasn't been implemented yet. Looks like internally it calls NSString.init(contentsOfFile:encoding:) though, so I swapped the call.

http://stackoverflow.com/questions/41317986/string-initcontentsoffile-replacement-for-linux

* Couldn't start Echo server with ssl on linux due to String init method not being implemented yet
@jcanizales jcanizales requested a review from timburks March 20, 2017 23:41
@timburks timburks merged commit 5009983 into grpc:master Apr 8, 2017
@maznikoff maznikoff mentioned this pull request Aug 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants