-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Swift: Xcode 16.2 - could not build module #19284
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
This line in the logs looks worrying:
Have you tried running the same build commands in ADO, but without CodeQL? If the same build command runs fine without CodeQL then CodeQL's analyzer is somehow interfering and causing a failure. |
@aibaars of course, without the |
Thanks for confirming. |
It would be very helpful if you could attach the detailed CodeQL log file, in particular the I could not find many other reports of |
Here are some instructions to obtain debug artifacts. Note that the debug artifacts contain sensitive information such as the contents of analyzed files. If your repository is private then it is probably best to create an enterprise support ticket and move this conversation there. |
@aibaars I have been trying this but I keep on getting a error
Which is probably because the whole compiling is broken? |
That looks really strange indeed. It looks like a mixup of Windows and Unix paths. Do you have any idea where the |
@aibaars oke my bad, used the slash in the wrong direction. Attached the build tracer log, I will provide all other logging to our GitHub person of contact. |
The By the way, on Github actions that environment variable is set by |
Hi @stefanrenne @ramon-hub Thanks for the detailed logs provided in the internal escalation. I would like to understand whether it's an interaction between CodeQL ADO's integration and the CodeQL tracer. I was wondering if the |
@redsun82 the result is definitely different
But the logs are indicating an unexpected token `(' see attachment |
Interesting, the |
ah, before trying that, one more thing that sprang to my mind @stefanrenne: could you try adding explicit |
@redsun82 lets see I tried building locally under rosetta, no problem there then I downloaded the latest codeql bundle 2.21.3, I should mention that this is a newer version then the latest one I tried on ado. And it gives this output |
Good to hear that! I will compare the logs now. In CodeQL version 2.21.2 we updated the swift compiler library our swift solution is built upon to version 6.1, so I wonder if that is what has helped in your local run. I see the latest failure logs we have come from a 2.21.1 CLI. The other point might be the different Xcode version you're using, but I would definitely try first if you can update the codeQL version, maybe trying both an indirect tracing run (i.e. the initial pipeline you had with the Xcode action) and a direct one (the If that fails, is using a newwer Xcode version in your CI an option maybe? |
ADO pipelines using codeql bundle 2.21.0 with Xcode 16.2 and the following task configuration block me to compile a swift project. It fails on
could not build module
related errors.Pipeline:
Output:
logging.txt
The text was updated successfully, but these errors were encountered: