Skip to content

Commit

Permalink
fix: fix target relation (#13785)
Browse files Browse the repository at this point in the history
  • Loading branch information
hansemannn authored Mar 30, 2023
1 parent bf0d3f2 commit 34da923
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion iphone/cli/commands/_build.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 34da923

Please sign in to comment.