codeql icon indicating copy to clipboard operation
codeql copied to clipboard

Add support for Swift 6.1 / Xcode 16.3 with Autobuild

Open vsanthanam opened this issue 6 months ago • 3 comments
trafficstars

CodeQL build commands file on swift packages that use toolchain version 6.1

vsanthanam avatar May 19 '25 14:05 vsanthanam

Hi @vsanthanam,

Swift 6.1 is supported from CodeQL 2.21.2 onwards. If you're experiencing any problems with that version or later versions. Please provide further details.

jketema avatar May 19 '25 14:05 jketema

I should have clarified -- what I mean is that it doesn't work with autobuild

I would have expected is for autobuild to use whatever Swift version is described in Package.swift

To use CodeQL, you need to do a manual build, change the runner, and run xcode-select to select the appropriate Swift toolchain

vsanthanam avatar May 19 '25 16:05 vsanthanam

Hi @vsanthanam,

At present autobuild does not try to detect which version of Swift is being used by your project, and it just uses the default version available on your machine. Note that this behavior has not changed. So unfortunately there is no way around running xcode-select.

jketema avatar May 20 '25 08:05 jketema