xcode-build-server: LSP doesn't come with code completions/suggestions
Hello, i haven’t code completions/suggestions while my LSP is successfully activate and i’ve generate buildServer.json in the root of my working directories. Here are some screenshoots for my problem:
-
I want to integrate
SourceKit-LSPwith my NeoVim, and here are my configurations: -
Here are my cloned
xcode-build-serverrepos: -
Here are my generated
buildServer.json -
Here are my working directories
-
Here are my
LspLogwhen i open my Swift file: -
I try to type
importand Lsp doesn’t give anything about suggestions/completions:
So, that’s my report for you. I hope i can develop iOS app outside XCode environment. Thank you very much for your great work, mate 🍻
About this issue
- Original URL
- State: closed
- Created 5 months ago
- Comments: 25 (12 by maintainers)
I try available suggestions, and this is what i get.
I try to run the default test when i create the project:
I try to re-generate
buildServer.json:I try to re-open NeoVim and try to
import xctand code completions/suggestions shows up:I try to
import injeand code completions/suggestions shows up:I try to use

Injectin code, and code completions/suggestions shows up:I try to use
gdwhen the cursor aboveInjectas for Goto Definition in NeoVim:And i think finally it works really perfect. Should i close the issue?
I have been experimenting with the
Xcode-Build-Serverproject using Helix editor and have noticed an interesting behavior regarding LSP suggestions. When creating Xcode projects (Xcode 15.2 (15C500b), Ventura 13.6.1) with the ‘create git repo on my mac’ option selected, LSP suggestions work perfectly. However, if I disable this option and create the project without a git repository, LSP suggestions do not work. I have verified that all paths are correct and have tested with other projects, but the behavior persists. Interestingly, if I create a project with git disabled and then create a repo with git init, LSP suggestions start working.I thought this information might be helpful to others who are using the Xcode-Build-Server project and experiencing similar issues.
I think this works very perfect, and i’ve try to maximize the potentials to see great articles from @wojciech-kulik again.
Thank you very much, for all of you. Keep your great works, and enjoy your life, mate 🍻