diff --git a/lib/xcode.js b/lib/xcode.js index a014773..56c34ec 100644 --- a/lib/xcode.js +++ b/lib/xcode.js @@ -29,7 +29,7 @@ async function getPathFromXcodeSelect (timeout = XCRUN_TIMEOUT) { const proposals = xcodePaths.map((p) => ` sudo xcode-select -s "${path.join(p, 'Contents', 'Developer')}"`); return `${prefix}. ` + - `Consider running${proposals.length > 1 ? ' any of' : ''}:\n${'\n'.join(proposals)}\nto address this issue.`; + `Consider running${proposals.length > 1 ? ' any of' : ''}:\n${proposals.join('\n')}\nto address this issue.`; }; let stdout;