当我使用命令时
cordova platform add ios
我遇到了这个问题。
Creating ios project...
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.
Error: /Users/ykorshev/.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.EventEmitter.emit (events.js:98:17)
at maybeClose (child_process.js:753:16)
at Process.ChildProcess._handle.onexit (child_process.js:820:5)
安装了Xcode beta 6和Xcode命令行开发者工具。我使用的是Mac OS X v10.9.3。
xcode
的 beta 版本,如果您还没有在 PhoneGap 的支持论坛上发布此问题,请尽快发布。 - Dawson Loudon