How to use SourceKit-lsp with iOS projects

I tried this in Sublime text with the -Xswiftc flags and it worked. I think there must be something wrong in how the command is configured or with the lsp plugin not using those arguments when launching.