From 34da92318a1ca5f775f185b43c1b9c7e29fa4c6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hans=20Kn=C3=B6chel?= Date: Thu, 30 Mar 2023 13:57:39 +0200 Subject: [PATCH] fix: fix target relation (#13785) --- iphone/cli/commands/_build.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/iphone/cli/commands/_build.js b/iphone/cli/commands/_build.js index 78b6af1964c..aecf0bc5a3d 100644 --- a/iphone/cli/commands/_build.js +++ b/iphone/cli/commands/_build.js @@ -7109,8 +7109,10 @@ iOSBuilder.prototype.invokeXcodeBuild = async function invokeXcodeBuild(next) { this.logger.warn(`The app is using native modules (${Array.from(this.legacyModules)}) that do not support arm64 simulators, we will exclude arm64. This may fail if you're on an arm64 Apple Silicon device.`); args.push('EXCLUDED_ARCHS=arm64'); } - } else if (this.target === 'device' || this.target === 'dist-adhoc') { + } else if (this.target === 'device' || this.target === 'dist-adhoc' || this.target === 'dist-appstore') { args.push('-destination', 'generic/platform=iOS'); + } else if (this.target === 'macos' || this.target === 'dist-macappstore') { + args.push('-destination', 'generic/platform=macOS'); } xcodebuildHook(