xcode-build-server icon indicating copy to clipboard operation
xcode-build-server copied to clipboard

In included file: <cstddef> tried including <stddef.h> but didn't find libc++'s <stddef.h> header.

Open bruhderek opened this issue 6 months ago • 41 comments

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]
image image

bruhderek avatar Sep 02 '24 01:09 bruhderek