1
我正在嘗試使用CLI爲Phonegap添加ios平臺項目,但遇到以下問題。面向PhoneGap添加ios平臺的問題
Creating ios project...
xcrun: Error: could not stat active Xcode path '/Volumes/Xcode/Xcode.app/Contents/Developer'. (No such file or directory)
Cordova can only run in Xcode version 4.6 or greater.
Error: /Users/Mahmood1/.cordova/lib/ios/cordova/3.4.1/bin/create: Command failed with exit code 2
at ChildProcess.whenDone (/usr/local/lib/node_modules/cordova/src/superspawn.js:126:23)
at ChildProcess.EventEmitter.emit (events.js:98:17)
at maybeClose (child_process.js:743:16)
at Process.ChildProcess._handle.onexit (child_process.js:810:5)
注:我有兩個版本的xcode安裝在應用程序ie。 xcode 5.1和xcode 4.6.xcode 5.1被命名爲「xcode」,xcode 4.6命名爲「xcode2」。如果您在不同的位置安裝的Xcode在Xcode中選擇命令
我用「的Xcode,選擇」命令設定活躍的開發庫,它解決了我issue.Follwing命令我解僱:「 xcode-select --switch /Applications/Xcode.app「。謝謝 :-) – Kushagra