Skip to content

Commit

Permalink
fix(ios): production builds crash with Node 14
Browse files Browse the repository at this point in the history
  • Loading branch information
ewanharris authored and sgtcoolguy committed May 10, 2021
1 parent e6e6bb2 commit 6ac7d88
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 @@ -5383,7 +5383,7 @@ iOSBuilder.prototype.writeEnvironmentVariables = async function writeEnvironment
}

// for non-development builds, DO NOT WRITE OUT ENV VARIABLES TO APP
const contents = this.writeEnvVars ? JSON.stringify(process.env) : {};
const contents = this.writeEnvVars ? JSON.stringify(process.env) : '{}';
if (!fs.existsSync(envVarsFile) || contents !== fs.readFileSync(envVarsFile, 'utf8')) {
this.logger.debug(__('Writing %s', envVarsFile.cyan));

Expand Down

0 comments on commit 6ac7d88

Please sign in to comment.