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

╄→尐↘猪︶ㄣ 提交于 2020-01-22 15:15:27

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!