Skip to content

khlopko/xcode-bsp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Important

State-of-the-art implementation, may contain issues or don't work on particular projects.

xcode-bsp

Xcode Build Server Protocol implementation in Swift.

Aims to provide support for Xcode projects in other editors that rely on sourcekit-lsp.

current state

Capable to run completion requests. Missing diagnostics. Really slow on start.

Implemented methods:

  • build/initialize
  • build/shutdown
  • build/exit
  • textDocument/registerForChanges
  • workspace/buildTargets
  • buildTarget/sources
  • buildTarget/prepare (currently disabled)
  • textDocument/sourceKitOptions

how to: install

Right now there is zero automation provided by the tool, you have to configure it manually.

  1. Clone the repo in convinient for you way.
  2. Build release version:
    swift build -c release
  3. Create link to /usr/local/bin:
    ln -s "{PWD}"/.build/release/xcode-bsp /usr/local/bin
  4. In the root folder of the Xcode project create new directory:
    mkdir .bsp
  5. Inside this directory, create new file xcode-bsp.json with 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.

alternatives

About

Xcode Build Server

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages