Import Darwin.ncurses doesn't import properly with Xcode

When including the system ncurses with a module map or just using the built in Swift import, Xcode does not work properly, I am not getting any code completion. When using the Homebrew version code completion works but that causes errors and it's unnecessary anyway.

What's wrong with the system implementation? I can "jump to definition" on the module and it looks completely normal to me.


Doesn't complete even though the function is used right above it and compiles.

Actually it magically fixed itself after restarting Xcode. The Xcode text editor is becoming increasingly unstable (and slow) with each passing year and is quickly approaching bugginess levels of the Xcode debugger.