Important
State-of-the-art implementation, may contain issues or don't work on particular projects.
Xcode Build Server Protocol implementation in Swift.
Aims to provide support for Xcode projects in other editors that rely on sourcekit-lsp.
Capable to run completion requests. Missing diagnostics. Really slow on start.
Implemented methods:
build/initializebuild/shutdownbuild/exittextDocument/registerForChangesworkspace/buildTargetsbuildTarget/sourcesbuildTarget/prepare(currently disabled)textDocument/sourceKitOptions
Right now there is zero automation provided by the tool, you have to configure it manually.
- Clone the repo in convinient for you way.
- Build release version:
swift build -c release
- Create link to
/usr/local/bin:ln -s "{PWD}"/.build/release/xcode-bsp /usr/local/bin - In the root folder of the Xcode project create new directory:
mkdir .bsp
- Inside this directory, create new file
xcode-bsp.jsonwith following contents:{ "name": "xcode-bsp", "argv": ["/usr/local/bin/xcode-bsp"], "version": "0.1.0", "bspVersion": "2.0.0", "languages": ["swift", "objective-c", "objective-cpp", "c", "cpp"] }
Rest is up to SourceKit's LSP.