Version 1.4.2 with improvements to xcode-build-server integration #48
Closed
jansorg
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
New version 1.4.2 contains improvements to integrate with xcode-build-server and BSP servers paired with sourcekit-lsp, in general.
1.4.2 is already available on the EAP channel: https://plugins.jetbrains.com/plugin/22150-swift-support/versions/eap
On the stable channel, it will become available early next week.
Earlier versions incorrectly set the working directory of the sourcekit-lsp process. It's used by sourcekit-lsp to locate the
buildServer.jsonfile in a project's base directory.xcode-build-serveris not yet bundled with the plugin and everything related to XCode is still in an early state.I've tested this successfully with some open-source XCode projects on macOS 25 with XCode 16 and Swift 6.2.
This is an early state and later versions will hopefully provide a polished, integrated setup and experience.
I'd appreciate your feedback.
xcode-build-server setup for the plugin
xcodebuildas explained at in this sectionbuildServer.jsonfile: https://github.com/SolaWing/xcode-build-server?tab=readme-ov-file#bind-to-xcodeOther changes:
Preferences > Build, Execution, Deployment > Swift, there are now a few more settings to configure sourcekit-lsp launched by the plugin. The workspace type setting may help to get a XCode integration or SwiftPM setup working. But in my experience sourcekit-lsp will always use a BSP build server if there's a 'buildServer.json` file at the project root. SwiftPM etc. is detected only if that file is not present.Tools > Swift Supportfor debugging and a quick restartTroubleshooting
I had problems to get a project with a dual SwiftPM and XCode setup working. I had to select the project.xcodeproj folder in XCode to open it. Opening the folder apparently used the SwiftPM setup and the compilation results ended up in a different place.
Make sure to use the same project.xcodeproj or project.xcworkspace files in both XCode and for the xcode-build-server setup.
Screenshots
Settings:
More actions:

Beta Was this translation helpful? Give feedback.
All reactions