我设法创建一个新的phonegap项目并使用以下命令成功添加android平台:
cordova platform add android
但是当我尝试添加ios平台时出现错误:
'"C:\Users\ryan.pays\.cordova\lib\ios\cordova\3.3.0\bin\create"' is not recognized as an internal or external command,
operable program or batch file.
at C:\Users\ryan.pays\AppData\Roaming\npm\node_modules\cordova\src\platform.js:282:30
at ChildProcess.exithandler (child_process.js:641:7)
at ChildProcess.EventEmitter.emit (events.js:98:17)
at maybeClose (child_process.js:735:16)
at Socket.<anonymous> (child_process.js:948:11)
at Socket.EventEmitter.emit (events.js:95:17)
at Pipe.close (net.js:466:12)
我进入了C:\ Users \ myusername.cordova \ lib并删除了ios文件夹再试一次,但我仍然得到同样的错误。
使用最新的phonegap,cordova和plugman。
关于我做错了什么的想法?
答案 0 :(得分:2)
您无法在Windows中开发ios平台,需要Mac系统。
http://docs.phonegap.com/en/3.3.0/guide_cli_index.md.html#The%20Command-Line%20Interface