diff --git a/config/scripts/build-computer-macos.mjs b/config/scripts/build-computer-macos.mjs index 1730cfc77c4..c19e5adc6c3 100644 --- a/config/scripts/build-computer-macos.mjs +++ b/config/scripts/build-computer-macos.mjs @@ -29,7 +29,18 @@ createHelperApp() function buildUniversalBinary() { const builtBinaries = universalTriples.map((triple) => { - run('swift', ['build', '-c', 'release', '--package-path', packagePath, '--triple', triple]) + // SwiftPM 6.4+ swiftbuild default skips the .build//release layout lipo reads (#21145) + run('swift', [ + 'build', + '-c', + 'release', + '--package-path', + packagePath, + '--triple', + triple, + '--build-system', + 'native' + ]) return path.join(packagePath, '.build', triple, 'release', 'orca-computer-use-macos') }) mkdirSync(path.dirname(binaryPath), { recursive: true })