-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Swift: Xcode 16 - Library not loaded: @rpath/libSwiftSyntax.dylib #17819
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@weisunOW thanks for reporting this! |
Hi @coadaflorin, I tried the new v2.20.0 CodeQL CLI, I'm still seeing the same error. |
Hi @weisunOW, we had to accelerate the release of |
Hi @coadaflorin, We're seeing the same issue on Xcode 16 using 2.20.1.
|
Hi @coadaflorin @cbieniakTU, we confirmed that the workaround github/codeql-action#2506 (comment) by @jsm174 worked for us. |
Hi all! I was able to reproduce this locally and I am working on a solution. In the meantime, the workaround mentioned above is probably the best way to get around this issue. |
Sorry, I closed this by mistake. We do however have a change that should fix this coming up in the next release later this week, so stay tuned 👍 |
@redsun82 any update on this issue? is resolving this issue also in scope for microsoft devops? |
A fix for what we were able to reproduce is included in the latest 2.20.3 release that was made available on the 24th of January. |
@stefanrenne yes, they both use the same CodeQL engine, so as soon as the devops platform picks up the latest version as suggested above, the problem should be fixed. |
@stefanrenne can you confirm if this fixed your problem? I will close this issue as I haven't seen any follow-up from anyone that things are not working. If you are still seeing this issue on a recent version feel free to reopen this ticket. |
I just attempted to remove the hack from our pipeline, and it failed as well with the same error. It looks like it pulled 2.20.4. |
@coadaflorin I just tried 2.20.5 on devops and it gives me the same error as before, see attached logs |
👋 I'm sorry this was not fixed the first time around 🙇 Our first fix consisted in skipping tracing for the We've now added on our The above will land in a release around the 4th of April. In the meantime, the workaround described in github/codeql-action#2506 (comment) is your best bet. |
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?The text was updated successfully, but these errors were encountered: