Skip to content

Commit

Permalink
fix(build/ios): simulator and macos builds don't require wwdr
Browse files Browse the repository at this point in the history
The current check will always step into the if because it will always not equal one of those
  • Loading branch information
ewanharris committed Jan 3, 2024
1 parent 1eeb301 commit 82deaa7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iphone/cli/commands/_build.js
Original file line number Diff line number Diff line change
Expand Up @@ -1905,7 +1905,7 @@ iOSBuilder.prototype.validate = function validate(logger, config, cli) {
}, this);

// if in the prepare phase and doing a device/dist build...
if (cli.argv.target !== 'simulator' || cli.argv.target !== 'macos') {
if (cli.argv.target !== 'simulator' && cli.argv.target !== 'macos') {
// make sure they have Apple's WWDR cert installed
if (!this.iosInfo.certs.wwdr) {
logger.error(__('WWDR Intermediate Certificate not found') + '\n');
Expand Down

0 comments on commit 82deaa7

Please sign in to comment.