github / github/codeql

Swift: Xcode 16.2 - could not build module

Open
#19,284 17 comments 0 reactions 1 assignee Claimed by @redsun82 View on GitHub
question
Dominant language
CodeQL
Stars
10.1k
Forks
2.1k
Avg merge
2d 15h
Merged PRs (30d)
141

Description

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:
```
- task: AdvancedSecurity-Codeql-Init@1
inputs:
enableAutomaticCodeQLInstall: true
languages: swift
querysuite: security-and-quality
- task: Xcode@5
displayName: 'Build and archive'
inputs:
configuration: 'ANONYMISED'
sdk: iphoneos
xcWorkspacePath: ANONYMISED.xcodeproj
scheme: 'ANONYMISED'
xcodeVersion: specifyPath
xcodeDeveloperDir: '/Applications/Xcode_$(xcodeVersion).app/Contents/Developer'
packageApp: true
archivePath: 'output/release'
exportPath: 'output/release'
exportOptions: plist
exportOptionsPlist: 'Signing/$(buildType)/exportOptions.plist'
signingOption: default
```

Output:
[logging.txt](https://github.com/user-attachments/files/19700668/logging.txt)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.