CodeQL 针对 macOS 27、Xcode 27 与 Swift 6.4 的变更
CodeQL changes for macOS 27, Xcode 27, and Swift 6.4
从 macOS 27 和 Xcode 27 起,Apple 不再在 CodeQL 依赖追踪构建的部分系统二进制和库中提供 Intel(x86_64)代码,CodeQL 因此无法在这些版本上支持追踪扫描,也不支持 Swift 6.4。
Table of Contents
Menu. Currently selected: What's affected
Starting with macOS 27 and Xcode 27, Apple no longer includes Intel (x86_64) code in some of the system binaries and libraries that CodeQL relies on to trace builds. As a result, CodeQL can’t support traced scans on these versions or analyze Swift 6.4.
What’s affected
- Xcode 27: When Xcode 27 is installed, traced extraction isn’t available for C/C++, C#, Go, Java, Kotlin, or Swift.
- macOS 27: Traced extraction may not be available for the previously mentioned languages.
- Swift 6.4: CodeQL doesn’t support Swift 6.4 on any platform.
- Intel-based Macs: CodeQL support for Intel-based Macs will be deprecated in mid-December 2026.
How to keep your scans running
If you scan Swift or use traced builds for other languages, pin your workflows to macOS 26 or earlier and Xcode 26 or earlier. If you use GitHub Actions, pin the runner image and toolchain in your workflow rather than relying on the latest versions.
For C/C++, C#, and Java, you can switch to build mode none, which doesn’t require tracing a build.
Join the discussion within GitHub Community.
Table of Contents
Menu. Currently selected: What's affected
Subscribe to our developer newsletter
Discover tips, technical guides, and best practices in our biweekly newsletter just for devs.
来源:GitHub Changelog · github.blog