Skip to content

Commit a434856

Browse files
authoredNov 18, 2024··
unity-xcode-builder@v1.1.3 (#11)
- change how xcode version is selected with xcodes
1 parent d4eeeb4 commit a434856

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed
 

‎dist/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -61298,7 +61298,7 @@ const main = async () => {
6129861298
let xcodeVersionString = core.getInput('xcode-version');
6129961299
if (xcodeVersionString) {
6130061300
core.info(`Setting xcode version to ${xcodeVersionString}`);
61301-
await exec.exec('sudo', ['xcode-select', '-s', `/Applications/Xcode_${xcodeVersionString}.app/Contents/Developer`]);
61301+
await exec.exec('xcodes', ['select', xcodeVersionString]);
6130261302
}
6130361303
let xcodeVersionOutput = '';
6130461304
await exec.exec('xcodebuild', ['-version'], {

‎dist/index.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "unity-xcode-builder",
3-
"version": "1.1.2",
3+
"version": "1.1.3",
44
"description": "A GitHub Action to build, archive, and upload Unity exported xcode projects.",
55
"author": "buildalon",
66
"license": "MIT",

‎src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const main = async () => {
2222
let xcodeVersionString = core.getInput('xcode-version');
2323
if (xcodeVersionString) {
2424
core.info(`Setting xcode version to ${xcodeVersionString}`);
25-
await exec.exec('sudo', ['xcode-select', '-s', `/Applications/Xcode_${xcodeVersionString}.app/Contents/Developer`]);
25+
await exec.exec('xcodes', ['select', xcodeVersionString]);
2626
}
2727
let xcodeVersionOutput = '';
2828
await exec.exec('xcodebuild', ['-version'], {

0 commit comments

Comments
 (0)