在Windows7上使用phonegap创建iPhone应用程序

C:\soft\my-app>phonegap create something [phonegap] create called with the options C:\soft\my-app\something com.phonegap.helloworld HelloWorld [phonegap] Customizing default config.xml file [phonegap] created project at C:\soft\my-app\something cd something C:\soft\my-app\something>phonegap build ios [phonegap] detecting iOS SDK environment... [phonegap] using the local environment [phonegap] adding the iOS platform... { [CordovaError: Applications for platform ios can not be built on this OS - win32.] name: 'CordovaError', message: 'Applications for platform ios can not be built on this OS - win32.' } [error] Applications for platform ios can not be built on this OS - win32. [phonegap] using the remote environment { [Error: ENOENT, open 'C:\soft\my-app\something\www\config.xml'] errno: 34, code: 'ENOENT', path: 'C:\\soft\\my-app\\something\\www\\config.xml' } [error] ENOENT, open 'C:\soft\my-app\something\www\config.xml' 

当我查看Windows信息(右键单击我的计算机)时,它将Windows操作系统显示为64位。

可能导致此问题的原因是什么? 我正在尝试在Windows 7上开发iphone应用程序。我使用以下命令安装了node.js和phonegap:npm install -g phonegap

我需要安装cordova吗?

Scott Hunter所说的并不完全正确,你可以使用windows构建IOS。 它将使用phonegap构建来编译代码,如此行“[phonegap]使用远程环境”所示

虽然我有与OP相同的问题,但我认为它是一个错误。 因为我过去没有遇到过问题,刚刚升级并试图创建一个新项目。

编辑:降级到旧版本应该可以工作,它看起来像:npm -g install phonegap@3.5.0-0.21.18

除了Mac OSX之外,您无法构建iOS应用程序。