Swift 3.0 - How to build Sourcekit and Sourcekitten in Ubuntu 14.04?

天大地大妈咪最大 提交于 2019-12-25 09:14:42

问题


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

Note: Dependencies and other tools for building are already installed as per https://github.com/apple/swift


回答1:


This is duplicate to Building Swift SourceKit on Linux

Updated Nov.24, 2016.

Build Sourcekit

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/

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

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

Build SourceKitten

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



来源:https://stackoverflow.com/questions/39962642/swift-3-0-how-to-build-sourcekit-and-sourcekitten-in-ubuntu-14-04

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