rusty bit
rusty bit

Reputation: 371

cant add IOS platform to cordova project

iam developing a mobile app using Phonegap for Android and IOS platform on Command line.

I created a project on my desktop and i added android platform to the project but when i try to add IOS platform using the command-

cordova platform add ios

Iam gettting error shown in the image

Error ehile adding ios platform to cordova project

I am not able to get what the problem is. Please help !!!

Project name is CorwiV1.

Upvotes: 1

Views: 578

Answers (2)

Savan Kachhiya Patel
Savan Kachhiya Patel

Reputation: 1084

First You need MAC os and Developer Tools like Xcode for ios for developing and download phonegap's latest version and for create Phonegap Project in ios follow this link Create Phonegap Project in ios . Hope this help you.

Upvotes: 1

Sithys
Sithys

Reputation: 3803

First of all: Are you using Phonegap or Cordova?

I would recommend you to read the Cordova Documentation of how to get started with this. After you downloaded Cordova you have to install NodeJS. <- Sorry, wrong way, FIRST install NodeJS and after that you install cordova over the terminal.

If you did this all, you have to create a Project like this:

  • open terminal
  • cd ~/desktop
  • cordova create test com.example.test
  • cd test
  • cordova platform add ios/android etc.
  • cordova plugin add org.apache.cordova.plugin
  • cordova build

When you've finished this, you should see 2 folder called "android" and "ios" in your test mainfolder.

Keep in mind that you can not develop/publish iOS apps on a Windows Computer!

Maybe you look into the Getting started with iOS Guide

Upvotes: 0

Related Questions