I've been building a small UI application on Linux using the
SwiftGtk package. This package uses a custom build script which generates wrappers and sets a bunch of flags for SwiftPM to build the project. And it works.
One of the biggest problems I'm having is the lack of sourcekit-lsp support while editing. GTK is a huge framework, and not being able to see what properties and methods a type has can be really frustrating. Sourcekit-lsp apparently can't resolve importing the
SwiftGtk framework, so it can't get any of this information.
However - SwiftPM can build the project. Why isn't sourcekit-lsp able to use those flags when resolving dependencies?