Skip to content

Commit

Permalink
fix(ios): swift enabling in Objc module should build (#12372)
Browse files Browse the repository at this point in the history
Fixes TIMOB-28304
  • Loading branch information
vijaysingh-axway committed Feb 2, 2021
1 parent 42c3bad commit 3242840
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion iphone/cli/commands/_buildModule.js
Original file line number Diff line number Diff line change
Expand Up @@ -572,9 +572,13 @@ iOSModuleBuilder.prototype.buildModule = function buildModule(next) {
'-archivePath', path.join(this.projectDir, 'build', target + '.xcarchive'),
'-UseNewBuildSystem=YES',
'ONLY_ACTIVE_ARCH=NO',
'BUILD_LIBRARY_FOR_DISTRIBUTION=YES',
'SKIP_INSTALL=NO',
];

if (this.isFramework) {
args.push('BUILD_LIBRARY_FOR_DISTRIBUTION=YES');
}

const scheme = this.isFramework ? this.moduleIdAsIdentifier : this.moduleName;
args.push('-scheme');
args.push(scheme);
Expand Down

0 comments on commit 3242840

Please sign in to comment.