问题
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!
回答1:
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
来源:https://stackoverflow.com/questions/31210648/is-it-possible-to-build-swift-code-using-the-foundation-framework-and-target-lin