Swift 3.0-如何在Ubuntu 14.04中构建Sourcekit和Sourcekitten? [英] Swift 3.0 - How to build Sourcekit and Sourcekitten in Ubuntu 14.04?

查看:73
本文介绍了Swift 3.0-如何在Ubuntu 14.04中构建Sourcekit和Sourcekitten?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为稳定版本的Swift 3.0构建Sourcekit和Sourcekitten的步骤是什么?

What are the steps in building Sourcekit and Sourcekitten for the stable release version of Swift 3.0? Thanks in advance.

注意:根据 https://github.com/apple/swift

推荐答案

这与< a href = https://stackoverflow.com/questions/39941523/building-swift-sourcekit-on-linux>在Linux上构建Swift SourceKit

11月更新。 2016年2月24日。

Updated Nov.24, 2016.

swift的官方分支可能仍然有问题 https://bugs.swift.org/browse/SR-1676 。但是Norio Nomura在这里 https://github.com/norio-维护了一个docker构建环境。 nomura / docker-sourcekit-builder /

The official branch of swift may still have the issue https://bugs.swift.org/browse/SR-1676. But Norio Nomura maintained a docker building environment here https://github.com/norio-nomura/docker-sourcekit-builder/

如果您不想自己构建,只需使用sourcekit https://github.com/norio-nomura/docker-sourcekit-builder/releases

If you don't want to build it yourself, just download the package with sourcekit https://github.com/norio-nomura/docker-sourcekit-builder/releases

您可能必须将此包的lib目录下的 libsourcekitdInProc.so 放入您的lib路径中,或者将lib目录放入您的 LD_LIBRARY_PATH

You may have to put libsourcekitdInProc.so under lib directory of this package into your lib path, or the lib directory into your LD_LIBRARY_PATH

SourceKitten现在具有Linux支持。下载 git源代码,并使用 swift build

SourceKitten has Linux support now. Download the git source code and use swift build.

这篇关于Swift 3.0-如何在Ubuntu 14.04中构建Sourcekit和Sourcekitten?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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