Skip to content

Commit f70711b

Browse files
authored
Create compiled-languages-swift.md
1 parent cbef28c commit f70711b

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-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

0 commit comments

Comments
 (0)