Return-Path: X-Original-To: apmail-cordova-dev-archive@www.apache.org Delivered-To: apmail-cordova-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 936F611293 for ; Thu, 19 Jun 2014 12:00:15 +0000 (UTC) Received: (qmail 46911 invoked by uid 500); 19 Jun 2014 12:00:15 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 46875 invoked by uid 500); 19 Jun 2014 12:00:15 -0000 Mailing-List: contact dev-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list dev@cordova.apache.org Delivered-To: moderator for dev@cordova.apache.org Received: (qmail 38027 invoked by uid 99); 19 Jun 2014 02:33:00 -0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of fangqing.fan@gmail.com designates 209.85.219.44 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=u8qmiKK3EhYJiwx3aiFjLtqyyNFmfaZGQeYZend+4Mc=; b=NLKEo+oDWpnNYVcJOlbFX+ouJ7L+0JXKVtpUgQe/ijmf//sHRWPyEWSDO8DXV4JKRz rOeUI1B8Cff+sJxLFmoObTb/HX0fEJqzN9GsRnzPbstl9Xl3bAhgpR2wi5XH5cegTjWP GFXqJp8iIyndhzT9uC5JFiY0CtaOIGQqbREGiOD7nLYOns5ueOSQf8NpUfMYdb2ENQsa sSbrydWOhjHuvezlSlwpERSwmallUgLGTeEl7xPlSvlymaDaF11i9UQydGptMtveksV3 vE3IYx4GodJ2H4ujknB1d8ZY23GD4xchba1i4s6H7iLS2DvB9eBbbq+JQ+Y8ej2VaLSP CK2A== MIME-Version: 1.0 X-Received: by 10.60.70.200 with SMTP id o8mr1642939oeu.55.1403145154000; Wed, 18 Jun 2014 19:32:34 -0700 (PDT) Date: Thu, 19 Jun 2014 10:32:33 +0800 Message-ID: Subject: phonegap building issues for ios (Using CLI) From: Fred F Fan To: dev@cordova.apache.org, dev-owner@cordova.apache.org Content-Type: multipart/alternative; boundary=001a1133446078fd1c04fc273067 X-Virus-Checked: Checked by ClamAV on apache.org --001a1133446078fd1c04fc273067 Content-Type: text/plain; charset=UTF-8 Hi All, xcode verison : 6 beta macox version: Mavericks 10.9.3 cordova vresion: 3.5 I got two issues when using CLI add platform, one is xcode-select error the another one is Command failed with exit code 2. Current I am already fixed xcode-select error ,*but I don't know how to fix the * *Command failed with exit code 2 error. please give me some **Suggestions,thanks for your help.* *below is debug info:* fanfq-macbook:hello fanfangqing$ cordova -d platform add ios cordova library for "ios" already exists. No need to download. Continuing. Checking if platform "ios" passes minimum requirements... Creating ios project... Running command: /Users/fanfangqing/.cordova/lib/ios/cordova/3.5.0/bin/create --arc --cli /Users/fanfangqing/MyCode/fanfq-html54mobile/phonegap/hello/platforms/ios com.example.hello HelloWorld xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance Cordova can only run in Xcode version 4.6 or greater. Command finished with error code 2: /Users/fanfangqing/.cordova/lib/ios/cordova/3.5.0/bin/create --arc,--cli,/Users/fanfangqing/MyCode/fanfq-html54mobile/phonegap/hello/platforms/ios,com.example.hello,HelloWorld Error: /Users/fanfangqing/.cordova/lib/ios/cordova/3.5.0/bin/create: Command failed with exit code 2 at ChildProcess.whenDone (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:131:23) at ChildProcess.emit (events.js:98:17) at maybeClose (child_process.js:755:16) at Process.ChildProcess._handle.onexit (child_process.js:822:5) fanfq-macbook:hello fanfangqing$ cordova platform ls -- Kind Regards, Fred,Fan Fangqing P Please consider the environment before printing this email --001a1133446078fd1c04fc273067--