升级iOS版Phonegap(从1.4.1升级到最新版本) [英] Upgrade Phonegap for iOS (from 1.4.1 to latest)

查看:106
本文介绍了升级iOS版Phonegap(从1.4.1升级到最新版本)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否有人有升级电话间隙的经验.想获得一些帮助.

I would like to know if anyone has experience in upgrading phonegap. Would like to get some help.

我有一个基于iOS Phonegap的项目,该项目使用phonegap 1.4.1. 我需要将其更新到最新版本.当前的最新版本是2.2.0

I have an iOS Phonegap-based project that uses phonegap 1.4.1. I need to update it to the latest version. The latest version is currently 2.2.0

电话空档文档中描述的步骤仅告诉我们如何从一个版本升级到另一个版本,但对我将电话空档从非常旧的版本升级到最新版本没有帮助.

The steps that described in the phone gap document only tells us how to upgrade from one version to the other, but it doesn't help me in upgrade phone gap from a very old version to the latest one.

http://docs.phonegap. com/en/2.2.0/guide_upgrading_ios_index.md.html#Upgrading%20Cordova%20iOS

我可以看到从1.4.1到最新版本的三个 BIG 更改.

I can see three BIG changes from 1.4.1 to the latest version.

  1. 从1.4.1到1.5.0, PhoneGap.framework 已重命名为 Cordova.framework

从1.9.0到2.0.0,已删除 Cordova.framework ,而是使用 CordovaLib作为子项目.

From 1.9.0 to 2.0.0, Cordova.framework has been removed, instead it uses CordovaLib as a sub-project.

从2.0.0到2.1.0,(ARC)自动引用计数被引入 CordovaLib

From 2.0.0 to 2.1.0, Automatic Reference Counting (ARC) is introduced to CordovaLib

我不确定升级我的旧版Phonegap的最佳方法是什么,由于没有文档/教程,我不确定直接从1.4.1升级到2.2.0.跟随.

I am not sure what is the best approach for me to upgrade my old phonegap, I don't feel confident to jump straight from 1.4.1 to 2.2.0, by given the fact that there is no documents/tutorials to follow.

我正在考虑先将Phonegap从1.4.1升级到1.9,然后再将1.9.0升级到2.0.0和2.2.0.但这似乎是一项艰巨的工作.

I am thinking to upgrade the phonegap from 1.4.1 to 1.9 first, and then upgrade 1.9.0 to 2.0.0 and to 2.2.0. But it seems a big job.

请给我一些建议,否则有人遇到这个问题吗?

Please give me some suggestion on it, or is there anyone come across this?

谢谢.

推荐答案

我的建议是:

  1. 创建一个全新的项目.
  2. 将您的www资产复制到新的www
  3. 在index.html中引用新的cordova .js文件
  4. 重新添加您的插件(确保插件支持新的Cordova版本)
  5. 更新您的Cordova.plist设置以反映您想要的内容,请参见 http://docs.cordova.io <上的项目设置. /li>
  6. 更新您的白名单,请参阅 http://docs.cordova.io
  7. 上的白名单指南.
  1. Create a totally new project.
  2. Copy your www assets into the new www
  3. Refer to the new cordova .js file in your index.html
  4. Re-add your Plugins (make sure the plugins support the new Cordova version)
  5. Update your Cordova.plist settings to reflect what you want, see the Project Settings on http://docs.cordova.io
  6. Update your whitelist, see the Whitelist Guide on http://docs.cordova.io

这篇关于升级iOS版Phonegap(从1.4.1升级到最新版本)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆