Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to build Swift code using the Foundation Framework and target linux?

I know it will be released as open source in the end of the year, however I would like to know, if I create a framework that uses the Foundation framework, will it still be possible to build for Linux?

On the announcement it was said that they would be releasing Swift and a compiler for linux. Will builds of the open source version be limited to the standard Swift library?

I would really like to create a Web Service in Swift to run in Linux, but I need the Foundation Framework (I don't need that to be open source... just to link it to my code).

Thank you!

like image 481
nmdias Avatar asked Jul 03 '15 15:07

nmdias


1 Answers

It should be possible in the future, considering that Apple decided to release the Foundation framework as Open Source too.

"The Foundation Project, providing core utilities, internationalization, and OS independence http://swift.org"

"This project provides an implementation of the Foundation API for platforms where there is no Objective-C runtime."

https://github.com/apple/swift-corelibs-foundation

like image 103
nmdias Avatar answered Sep 24 '22 15:09

nmdias