Search code examples
swiftswift2open-sourcefoundation

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!


Solution

  • 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