(output: string, settingName: string)
| 39 | } |
| 40 | |
| 41 | function extractBuildSettingValues(output: string, settingName: string): string[] { |
| 42 | const regex = new RegExp(`^\\s*${settingName}\\s*=\\s*(.+)$`, 'gm'); |
| 43 | const values: string[] = []; |
| 44 | |
| 45 | for (const match of output.matchAll(regex)) { |
| 46 | const value = match[1]?.trim(); |
| 47 | if (value) values.push(value); |
| 48 | } |
| 49 | |
| 50 | return values; |
| 51 | } |
| 52 | |
| 53 | export async function detectPlatformFromScheme( |
| 54 | projectPath: string | undefined, |
no test coverage detected