Skip to content

Commit

Permalink
fix(ios): use correct iOS destination platform during build
Browse files Browse the repository at this point in the history
Fixes TIMOB-28545

Co-authored-by: lionelbouth <57134216+lionelbouth@users.noreply.github.com>
  • Loading branch information
build and lionelbouth committed Nov 8, 2021
1 parent 592a76d commit e8e4e00
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions iphone/cli/commands/_build.js
Original file line number Diff line number Diff line change
Expand Up @@ -7102,6 +7102,8 @@ 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') {
args.push('-destination', 'generic/platform=iOS');
}

xcodebuildHook(
Expand Down

0 comments on commit e8e4e00

Please sign in to comment.