Creating an iPhone app using phonegap on Windows7

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' 

When I look at information about Windows (right-click on my computer), it shows Windows as 64-bit.

What could be causing this problem? I am trying to develop an iphone application for Windows 7. I installed node.js and the phone table using the following command: npm install -g phonegap

Do I need to install a cord?

+3
ios cordova
source share
2 answers

What Scott Hunter said is not entirely true; you can create iOS using windows. He will use phonegap build to compile the code, as shown by this line "[phonegap] using the remote environment"

I have the same problem as the OP, but I think this is a mistake. Since I had no problems in the past, it was recently updated and I tried to create a new project.

Edit: switching to an earlier version should work, it looks like this: npm -g install phonegap@3.5.0-0.21.18

+2
source share

You cannot create an iOS application with anything other than Mac OSX.

0
source share

All Articles