Rakesh Vidya Chandra
Rakesh Vidya Chandra

Reputation: 332

Upgrading Cordova IOS from 3.1.0 to 3.4.1

I am a newbie and I am trying to deploy a IOS project to the store, which uses Cordova version of 3.1.0. When I validate I am getting an error "Itunes store operation failed" as Cordova version 3.1.0 doesn't support arm 64. To upgrade from 3.1.0 to 3.4.1, I followed the below steps:

  1. I used npm command to upgrade: sudo npm update -g cordova
  2. To update the platform : cordova platform update ios

At second step I am facing an error: "Current working directory is not a Cordova-based project."

Am I following the correct way? If right. how to fix the error in the second step? If wrong, what is the best possible way to upgrade my project to be deployed to store with arm 64 support?

Please help me out. Thanks in advance.

Upvotes: 1

Views: 417

Answers (1)

Sithys
Sithys

Reputation: 3793

First of all check your cordova version with cordova platform version ios. The actual version is 3.8.0.

After you did this, and your version is not 3.8.0 run sudo npm update -g cordova like you did already. When this is finished, you're going to type cordova -v and check, if cordova is at 5.1.1 now (which is the actual cordova version).

So now you're ready to update your version. Move into your project folder with your terminal -> cd desktop -> cd cordovaProject and run cordova platform update ios which will update the iOS Platform.

If this doesn't work for you. Copy the folder content of your iOS folder (yourProjectFolder -> platforms -> iOS -> www), create a new project and paste the copied content into the folder from which you copied it before.

This works like a charme :)

Upvotes: 2

Related Questions