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

Reply via email to