From 84c186676840e6f048c97c2f96ecadab4c6ca42e Mon Sep 17 00:00:00 2001 From: Justin SB Date: Thu, 2 Oct 2014 21:54:03 -0700 Subject: [PATCH] Launch appstore instead of error-prone xcode install We have to launch in the browser, but it is still better.. --- tools/commands-cordova.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tools/commands-cordova.js b/tools/commands-cordova.js index d5e4d03a56..2a090e01e6 100644 --- a/tools/commands-cordova.js +++ b/tools/commands-cordova.js @@ -1403,8 +1403,12 @@ _.extend(IOS.prototype, { if (!Host.isMac()) { throw new Error("Can only install Xcode on OSX"); } - Console.info("Launching Xcode installer; we recommend you choose 'Get Xcode' to install Xcode"); - files.run('/usr/bin/xcodebuild', '--install'); + + //Console.info("Launching Xcode installer; please choose 'Get Xcode' to install Xcode"); + //files.run('/usr/bin/xcodebuild', '--install'); + + // XXX: Any way to open direct in AppStore (rather than in browser)? + files.run('open', 'https://itunes.apple.com/us/app/xcode/id497799835?mt=12'); }, agreedXcodeLicense: function () {