Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
- change how xcode version is selected with xcodes
  • Loading branch information
StephenHodgson authored Nov 18, 2024
1 parent d4eeeb4 commit a434856
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -61298,7 +61298,7 @@ const main = async () => {
let xcodeVersionString = core.getInput('xcode-version');
if (xcodeVersionString) {
core.info(`Setting xcode version to ${xcodeVersionString}`);
await exec.exec('sudo', ['xcode-select', '-s', `/Applications/Xcode_${xcodeVersionString}.app/Contents/Developer`]);
await exec.exec('xcodes', ['select', xcodeVersionString]);
}
let xcodeVersionOutput = '';
await exec.exec('xcodebuild', ['-version'], {
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "unity-xcode-builder",
"version": "1.1.2",
"version": "1.1.3",
"description": "A GitHub Action to build, archive, and upload Unity exported xcode projects.",
"author": "buildalon",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const main = async () => {
let xcodeVersionString = core.getInput('xcode-version');
if (xcodeVersionString) {
core.info(`Setting xcode version to ${xcodeVersionString}`);
await exec.exec('sudo', ['xcode-select', '-s', `/Applications/Xcode_${xcodeVersionString}.app/Contents/Developer`]);
await exec.exec('xcodes', ['select', xcodeVersionString]);
}
let xcodeVersionOutput = '';
await exec.exec('xcodebuild', ['-version'], {
Expand Down

0 comments on commit a434856

Please sign in to comment.