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上开发iphone应用程序。我使用以下命令安装了node.js和phonegap : npm install -g phonegap
我需要安装cordova吗?
发布于 2014-10-20 20:48:13
斯科特·亨特所说的并不完全正确,你可以使用windows构建IOS。它将使用phonegap build编译代码,如行"phonegap using the remote environment“所示。
我遇到了和OP一样的问题,我认为这是个bug。因为我在过去没有问题,最近刚刚升级并尝试创建一个新项目。
编辑:降级到旧版本应该可以,它看起来像: npm -g install phonegap@3.5.0-0.21.18
发布于 2014-10-17 00:58:46
除了Mac之外,你不能在任何其他平台上构建iOS应用。
https://stackoverflow.com/questions/26416270
复制相似问题