@@ -57997,7 +57997,7 @@ const core = __nccwpck_require__(2186);
5799757997const xcodebuild = '/usr/bin/xcodebuild';
5799857998const xcrun = '/usr/bin/xcrun';
5799957999const WORKSPACE = process.env.GITHUB_WORKSPACE || process.cwd();
58000- const platforms = {
58000+ const platformMap = {
5800158001 'iphoneos': 'iOS',
5800258002 'macosx': 'macOS',
5800358003 'appletvos': 'tvOS',
@@ -58100,15 +58100,15 @@ async function parseBuildSettings(projectPath) {
5810058100 core.debug(`.pbxproj file path: ${projectFilePath}`);
5810158101 await fs.promises.access(projectFilePath, fs.constants.R_OK);
5810258102 const content = await fs.promises.readFile(projectFilePath, 'utf8');
58103- const platformName = core.getInput('platform') || matchRegexPattern(content, /\s+SDK_ROOT = (?<platform>\w+)/, 'platform');
58104- if (!platformName ) {
58103+ const platform = core.getInput('platform') || matchRegexPattern(content, /\s+SUPPORTED_PLATFORMS = (?<platform>\w+)/, 'platform');
58104+ if (!platform ) {
5810558105 throw new Error('Unable to determine the platform name from the build settings');
5810658106 }
5810758107 const bundleId = core.getInput('bundle-id') || matchRegexPattern(content, /\s+PRODUCT_BUNDLE_IDENTIFIER = (?<bundleId>[\w.-]+)/, 'bundleId');
5810858108 if (!bundleId || bundleId === 'NO') {
5810958109 throw new Error('Unable to determine the bundle ID from the build settings');
5811058110 }
58111- return [platforms[platformName ], bundleId];
58111+ return [platformMap[platform ], bundleId];
5811258112}
5811358113async function getPlatformSdkVersion(projectPath, scheme, platform) {
5811458114 let buildSettingsOutput = '';
@@ -58133,8 +58133,8 @@ async function getPlatformSdkVersion(projectPath, scheme, platform) {
5813358133 if (!platformSdkVersion) {
5813458134 platformSdkVersion = matchRegexPattern(buildSettingsOutput, /\s+SDK_VERSION = (?<sdkVersion>[\d.]+)/, 'sdkVersion') || null;
5813558135 }
58136- if (platforms [platform] !== 'macOS') {
58137- await downloadPlatformSdkIfMissing(platforms [platform], platformSdkVersion);
58136+ if (platformMap [platform] !== 'macOS') {
58137+ await downloadPlatformSdkIfMissing(platformMap [platform], platformSdkVersion);
5813858138 }
5813958139}
5814058140function matchRegexPattern(string, pattern, group) {
0 commit comments