Open weisunOW opened 1 month ago
@weisunOW thanks for reporting this! Currently we do not support scanning Swift code when using Xcode16, but we are working on adding support. We are currently investigating this and will post an update when we have something you can test.
We recently updated our iOS project to build with Xcode 16, swift 5 mode (
SWIFT_VERSION = 5
). However our Azure CodeQL pipeline started to fail on database creation withLibrary not loaded: @rpath/libSwiftSyntax.dylib
error for bothWidgetExtension
andIntentsExtension
.We've tried different CodeQL versions: 2.18.0, 2.19.1, 2.19.2, all failed with the same error. The same command worked when we built with Xcode 15.4, unfortunately we cannot fallback to Xcode 15.4 now.
Here is the database create command, please note that
.codeql.yml
is currently empty.codeql database create -l swift codeql-database --threads 0 --codescanning-config .codeql.yml --command \"${WORKSPACE_DIR}/Scripts/ci/az-build-for-codeql.sh\"
The
--command
build script runsxcodebuild
command below, the build script itself builds correctly without CodeQL cli.xcodebuild -workspace App.xcworkspace -scheme Application -derivedDataPath Build/DerivedData -destination "OS=18.0,name=iPhone 16 Pro Max"
Here is the failure part of the build log, sorry we cannot share the full log due to our policy. The log suggests that
libSwiftSyntax.dylib
cannot be found in the listed paths, however I'm sure thatlibSwiftSyntax.dylib
come as part of Xcode 16 under/Application/Xcode.app/Content/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host
. Please advise if we have missed anything?