xcode-build-server
xcode-build-server copied to clipboard
In included file: <cstddef> tried including <stddef.h> but didn't find libc++'s <stddef.h> header.
I recently started using xcode-build-server with sourcekit-lsp in neovim, and I'm having trouble with the LSP. For context I used Xcodebuild.nvim to configure the setup and then ran the xcode-build-server command.
For some reason the LSP only works in 1 file, which is a header file and gives me an error when I try to include
In included file: <cstddef> tried including <stddef.h> but didn't find libc++'s <stddef.h> header.
This usually means that your header search paths are not configured properly.
The header search paths should contain the C++ Standard Library headers before
any C Standard Library, and you are probably using compiler flags that make that
not be the case. clang (pp_hash_error) [11, 10]