You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by dr...@apache.org on 2013/10/15 20:40:03 UTC
[22/31] git commit: fixed ios patch to work with both 3.0 and tip of
tree (it changed)
fixed ios patch to work with both 3.0 and tip of tree (it changed)
Project: http://git-wip-us.apache.org/repos/asf/cordova-medic/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-medic/commit/b69b6109
Tree: http://git-wip-us.apache.org/repos/asf/cordova-medic/tree/b69b6109
Diff: http://git-wip-us.apache.org/repos/asf/cordova-medic/diff/b69b6109
Branch: refs/heads/master
Commit: b69b61090b9e6626aa1d8f6edd6c0343e40ec2e6
Parents: b72afee
Author: David Kemp <dr...@google.com>
Authored: Tue Aug 27 08:50:59 2013 -0400
Committer: David Kemp <dr...@chromium.org>
Committed: Tue Oct 15 14:13:39 2013 -0400
----------------------------------------------------------------------
src/build/makers/ios.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-medic/blob/b69b6109/src/build/makers/ios.js
----------------------------------------------------------------------
diff --git a/src/build/makers/ios.js b/src/build/makers/ios.js
index 05eeef5..d7308b8 100644
--- a/src/build/makers/ios.js
+++ b/src/build/makers/ios.js
@@ -54,7 +54,8 @@ module.exports = function(output,lib_location,test_dir, sha, devices, entry_poin
// modify configuration to Release mode, i386 to armv7 and sdk to iphoneos6.0 so we can use it with fruitstrap
// TODO: expose which target sdk to build for
var debugScript = path.join(output, 'cordova', 'build');
- fs.writeFileSync(debugScript, fs.readFileSync(debugScript, 'utf-8').replace(/configuration Debug/, 'configuration Release').replace(/i386/g,'armv7').replace(/iphonesimulator/, 'iphoneos'), 'utf-8');
+ // note that the following has to work for 3.0.0 and later and it change just AFTER 3.0.x release
+ fs.writeFileSync(debugScript, fs.readFileSync(debugScript, 'utf-8').replace(/configuration Debug/, 'configuration Release').replace(/i386/g,'armv7').replace(/iphonesimulator/, 'iphoneos').replace/SDK=`.*`/, 'SDK="iphoneos"'), 'utf-8');
} catch(e) {
error_writer('ios', sha, 'Exception thrown modifying mobile spec application for iOS.', e.message);
callback(true);