Skip to content

Commit 03955a4

Browse files
authored
Merge pull request #36 from advanced-security/codeql-swift-troubleshooting
Create compiled-languages-swift.md
2 parents cbef28c + 3a8e96a commit 03955a4

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Unable to automatically build your code - XCode version issue
2+
3+
The GitHub runners for macos will have a default version of xcode in use. See ["included software"](https://github.com/actions/runner-images/tree/main?tab=readme-ov-file#available-images) for the appropriate macos label.
4+
5+
To use any other version that is installed, you can run this command to explicitly set an Xcode version
6+
7+
```yml
8+
- name: Select Xcode version
9+
run: sudo xcode-select -s '/Applications/Xcode_15.3.app/Contents/Developer'
10+
```
11+
12+
13+
Sample output:
14+
```
15+
Command line invocation:
16+
[2024-04-25 18:01:23] [build-stdout] /Applications/Xcode_15.3.app/Contents/Developer/usr/bin/xcodebuild build -project /Users/runner/work/felickz-advanced-security-mobile-ios-test/felickz-advanced-security-mobile-ios-test/iGoat-Swift/iGoat-Swift.xcodeproj -target iGoat-Swift CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO
17+
```
18+
19+
20+
Alternatively, use a GitHub action to set this: https://github.com/marketplace/actions/setup-xcode-version

troubleshooting/codeql-builds/compiled-languages.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
* [C++](compiled-languages-cpp.md)
77
* [Java](compiled-languages-java.md)
88
* [Go](compiled-languages-go.md)
9+
* [Swift](compiled-languages-swift.md)
910

1011
## Autobuilder
1112
The autobuilder action (see [docs](https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-the-codeql-workflow-for-compiled-languages#about-autobuild-for-codeql) )

0 commit comments

Comments
 (0)