Skip to content

Commit

Permalink
fix destination
Browse files Browse the repository at this point in the history
  • Loading branch information
riskpp authored Oct 20, 2016
1 parent 776703f commit 9c1db03
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/podify.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,10 +249,13 @@ module.exports = function (context) {
var projectFix = "'-workspace', projectName + '.xcworkspace',";
var xcodeprojRegex = /\.xcodeproj/g;
var xcodeprojFix = '.xcworkspace';
var destinationSimulatorOrg = "'-destination', 'platform=iOS Simulator'";
var destinationSimulatorNew = "'-destination generic/platform=iOS'";
var fixedBuildContent = buildContent
.replace(targetRegex, targetFix)
.replace(projectRegex, projectFix)
.replace(xcodeprojRegex, xcodeprojFix);
.replace(xcodeprojRegex, xcodeprojFix)
.replace(destinationSimulatorOrg, destinationSimulatorNew);

fs.writeFileSync('platforms/ios/cordova/lib/build.js', fixedBuildContent);

Expand Down

0 comments on commit 9c1db03

Please sign in to comment.