Skip to content

Commit d83d540

Browse files
author
Maxim Lobanov
committed
remove debug
1 parent 175eae9 commit d83d540

File tree

3 files changed

+8
-11
lines changed

3 files changed

+8
-11
lines changed

dist/index.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ const run = () => {
3838
const versionSpec = core.getInput("xcode-version", { required: false });
3939
core.info(`Switching Xcode to version '${versionSpec}'...`);
4040
const selector = new xcode_selector_1.XcodeSelector();
41-
console.log(JSON.stringify(selector.getAllVersions(), null, 2));
4241
const targetVersion = selector.findVersion(versionSpec);
4342
if (!targetVersion) {
4443
throw new Error([
@@ -187,15 +186,15 @@ exports.getXcodeReleaseType = (xcodeRootPath) => {
187186
const licenseInfoPlistPath = path.join(xcodeRootPath, "Contents", "Resources", "LicenseInfo.plist");
188187
if (!fs.existsSync(licenseInfoPlistPath)) {
189188
// Every Xcode should contain license plist but it can be changed in future
190-
core.warning("Unable to determine Xcode version type based on license plist");
191-
core.warning(`Xcode License plist doesn't on exist on path '${licenseInfoPlistPath}'`);
189+
core.debug("Unable to determine Xcode version type based on license plist");
190+
core.debug(`Xcode License plist doesn't on exist on path '${licenseInfoPlistPath}'`);
192191
return XcodeReleaseType.Unknown;
193192
}
194193
const licenseInfoRawContent = fs.readFileSync(licenseInfoPlistPath, "utf8");
195194
const licenseInfo = plist.parse(licenseInfoRawContent);
196195
if (!licenseInfo.licenseType) {
197-
core.warning("Unable to determine Xcode version type based on license plist");
198-
core.warning("Xcode License plist doesn't contain 'licenseType' property");
196+
core.debug("Unable to determine Xcode version type based on license plist");
197+
core.debug("Xcode License plist doesn't contain 'licenseType' property");
199198
return XcodeReleaseType.Unknown;
200199
}
201200
const licenseType = licenseInfo.licenseType.toString().toLowerCase();

src/setup-xcode.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ const run = (): void => {
1212
core.info(`Switching Xcode to version '${versionSpec}'...`);
1313

1414
const selector = new XcodeSelector();
15-
16-
console.log(JSON.stringify(selector.getAllVersions(), null, 2));
1715
const targetVersion = selector.findVersion(versionSpec);
1816

1917
if (!targetVersion) {

src/xcode-utils.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,16 @@ export const getXcodeReleaseType = (xcodeRootPath: string): XcodeReleaseType =>
1313
const licenseInfoPlistPath = path.join(xcodeRootPath, "Contents", "Resources", "LicenseInfo.plist");
1414
if (!fs.existsSync(licenseInfoPlistPath)) {
1515
// Every Xcode should contain license plist but it can be changed in future
16-
core.warning("Unable to determine Xcode version type based on license plist");
17-
core.warning(`Xcode License plist doesn't on exist on path '${licenseInfoPlistPath}'`);
16+
core.debug("Unable to determine Xcode version type based on license plist");
17+
core.debug(`Xcode License plist doesn't on exist on path '${licenseInfoPlistPath}'`);
1818
return XcodeReleaseType.Unknown;
1919
}
2020

2121
const licenseInfoRawContent = fs.readFileSync(licenseInfoPlistPath, "utf8");
2222
const licenseInfo = plist.parse(licenseInfoRawContent) as plist.PlistObject;
2323
if (!licenseInfo.licenseType) {
24-
core.warning("Unable to determine Xcode version type based on license plist");
25-
core.warning("Xcode License plist doesn't contain 'licenseType' property");
24+
core.debug("Unable to determine Xcode version type based on license plist");
25+
core.debug("Xcode License plist doesn't contain 'licenseType' property");
2626
return XcodeReleaseType.Unknown;
2727
}
2828

0 commit comments

Comments
 (0)