是否可以使用Foundation Framework和目标linux构建Swift代码? [英] Is it possible to build Swift code using the Foundation Framework and target linux?

查看:92
本文介绍了是否可以使用Foundation Framework和目标linux构建Swift代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道它将在今年年底以开源形式发布,但是我想知道,如果我创建一个使用Foundation框架的框架,那么仍然有可能为Linux进行构建吗?

在公告中,据说他们将发布Swift和Linux编译器.开源版本的构建是否将限于标准的Swift库?

我真的很想在Swift中创建一个可在Linux上运行的Web服务,但是我需要Foundation Framework(我不需要将它作为开放源代码,只需将其链接到我的代码即可).

谢谢!

解决方案

考虑到Apple决定也将Foundation框架作为开源发布,因此将来应该有可能.

基金会项目,提供核心实用程序,国际化和操作系统独立性 http://swift.org "

该项目为没有Objective-C运行时的平台提供了Foundation API的实现."

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

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!

解决方案

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

这篇关于是否可以使用Foundation Framework和目标linux构建Swift代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆