Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Swift 2 and Linux/OS X differences

I'm trying to port some basic app from OS X to Linux but it seems that even basic stuff is missing on Linux platform. Is there some documentation what is missing ?? Here is example:

exmcast.swift:7:20: error: value of type 'String' has no member 'stringByReplacingOccurrencesOfString'
let name: String = address.stringByReplacingOccurrencesOfString(".", withString: "_")

This simple code works on OS X. On Linux - you see results. It's very hard to port anything when there is no basic info what is missing. And it looks like even basic stuff is missing..

like image 574
MrSpock Avatar asked Dec 15 '15 16:12

MrSpock


1 Answers

Swift 3 will be released in fall 2016.

The recently open-sourced Swift and the Linux port are work in progress:

The port is still a work in progress but we’re happy to say that it is usable today for experimentation.

You can go to Swift.org and github.com/apple and enjoy the fantastic work.

When you find something not yet implemented, you can file a bug and/or help implement the feature.

New versions of the open source Swift will be posted regularly on Swift.org.

like image 89
Eric Aya Avatar answered Sep 30 '22 00:09

Eric Aya