From 9c1db03f97d081f3b8b6cf19def5f82ad5ebfbea Mon Sep 17 00:00:00 2001 From: Olga Koroleva Date: Thu, 20 Oct 2016 09:48:32 +0300 Subject: [PATCH] fix destination https://github.com/blakgeek/cordova-plugin-cocoapods-support/issues/12 --- scripts/podify.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/podify.js b/scripts/podify.js index 639b278..6cfcabf 100755 --- a/scripts/podify.js +++ b/scripts/podify.js @@ -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);