Skip to content

Commit e4d5e55

Browse files
a bit more cleanup
1 parent 582ca99 commit e4d5e55

3 files changed

Lines changed: 11 additions & 15 deletions

File tree

dist/index.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58607,6 +58607,8 @@ async function GetProjectDetails(credential, xcodeVersion) {
5860758607
}
5860858608
const projectName = path.basename(projectPath, '.xcodeproj');
5860958609
const buildSettings = await getBuildSettings(projectPath);
58610+
const configuration = core.getInput('configuration') || 'Release';
58611+
core.info(`Configuration: ${configuration}`);
5861058612
const scheme = await getProjectScheme(projectPath);
5861158613
const platform = await getSupportedPlatform(projectPath);
5861258614
core.info(`Platform: ${platform}`);
@@ -58618,8 +58620,6 @@ async function GetProjectDetails(credential, xcodeVersion) {
5861858620
}
5861958621
await execXcRun(['simctl', 'list', 'runtimes', '--json'], true);
5862058622
}
58621-
const configuration = core.getInput('configuration') || 'Release';
58622-
core.info(`Configuration: ${configuration}`);
5862358623
if (!platform) {
5862458624
throw new Error('Unable to determine the platform to build for.');
5862558625
}
@@ -58855,8 +58855,8 @@ async function getProjectScheme(projectPath) {
5885558855
if (!schemes) {
5885658856
throw new Error('No schemes found in the project');
5885758857
}
58858-
core.info(`Available Schemes:`);
58859-
schemes.forEach(s => core.info(` > ${s}`));
58858+
core.debug(`Available Schemes:`);
58859+
schemes.forEach(s => core.debug(` > ${s}`));
5886058860
if (!scheme) {
5886158861
if (schemes.includes('Unity-iPhone')) {
5886258862
scheme = 'Unity-iPhone';
@@ -59430,9 +59430,8 @@ async function UploadApp(projectRef) {
5943059430
'--show-progress',
5943159431
'--output-format', 'json'
5943259432
];
59433-
let output = '';
5943459433
try {
59435-
output = await execXcRun(uploadArgs);
59434+
await execXcRun(uploadArgs);
5943659435
}
5943759436
catch (error) {
5943859437
throw new Error(`Failed to upload app:\n${error}`);

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/xcode.ts

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,8 @@ export async function GetProjectDetails(credential: AppleCredential, xcodeVersio
161161

162162
const projectName = path.basename(projectPath, '.xcodeproj');
163163
const buildSettings = await getBuildSettings(projectPath);
164+
const configuration = core.getInput('configuration') || 'Release';
165+
core.info(`Configuration: ${configuration}`);
164166
const scheme = await getProjectScheme(projectPath);
165167
const platform = await getSupportedPlatform(projectPath);
166168
core.info(`Platform: ${platform}`);
@@ -176,9 +178,6 @@ export async function GetProjectDetails(credential: AppleCredential, xcodeVersio
176178
await execXcRun(['simctl', 'list', 'runtimes', '--json'], true);
177179
}
178180

179-
const configuration = core.getInput('configuration') || 'Release';
180-
core.info(`Configuration: ${configuration}`);
181-
182181
if (!platform) {
183182
throw new Error('Unable to determine the platform to build for.');
184183
}
@@ -477,8 +476,8 @@ async function getProjectScheme(projectPath: string): Promise<string> {
477476
throw new Error('No schemes found in the project');
478477
}
479478

480-
core.info(`Available Schemes:`);
481-
schemes.forEach(s => core.info(` > ${s}`));
479+
core.debug(`Available Schemes:`);
480+
schemes.forEach(s => core.debug(` > ${s}`));
482481

483482
if (!scheme) {
484483
if (schemes.includes('Unity-iPhone')) {
@@ -1174,10 +1173,8 @@ export async function UploadApp(projectRef: XcodeProject) {
11741173
'--output-format', 'json'
11751174
];
11761175

1177-
let output: string = '';
1178-
11791176
try {
1180-
output = await execXcRun(uploadArgs);
1177+
await execXcRun(uploadArgs);
11811178
} catch (error) {
11821179
throw new Error(`Failed to upload app:\n${error}`);
11831180
}

0 commit comments

Comments
 (0)