2014-10-17 81 views
3
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位。在Windows7上使用phonegap创建iPhone应用程序

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

我需要安装cordova吗?

回答

0

您无法在Mac OSX以外的任何设备上创建iOS应用程序。

+2

那么,为什么他们给.bat文件。 – user204069 2014-10-17 01:07:57

+0

你得问问他们 – 2014-10-17 01:47:43

2

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

我和OP有同样的问题,但我想它是一个错误。由于我过去没有遇到过问题,而且刚刚升级并试图创建一个新项目。

编辑:降级到旧版本应该工作,它看起来像: NPM -g安装[email protected]

相关问题