在构建和模拟时未更改或更新Cordova + Xcode 7.3(html + Javascript) [英] Cordova + Xcode 7.3 (html + Javascript) not changed or updated when build and emulate

查看:103
本文介绍了在构建和模拟时未更改或更新Cordova + Xcode 7.3(html + Javascript)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是初学者混合移动应用程序.

Im a beginner hybrid mobile apps.

我能够创建我的hellocordova应用程序.但是,当我编辑我的html文件,然后构建它时.它保持不变.这些应用程序完全没有改变.我已经擦除并且将index.html留为空白,但是在构建之后,仍然显示默认的cordova index.html.

Im able to create my hellocordova apps. but when i edit my html file and then build it. it remains same. The apps does not changed at all. i already erase and leave blank my index.html but after i build it still show default cordova index.html.

我已经在Google上搜索并尝试清理+构建.

Im already google it and try to clean + build.

几乎所有我已经尝试过stackoverflow但从未成功的方法.我决定问一个问题,因为我尝试过的所有解决方案都行不通.

Almost every ways i already try on stackoverflow but never worked. i decide to ask a question because all the solution i try on stack never worked.

我该如何解决这个问题

推荐答案

如果您直接从Xcode更改html,则应更改 staging 文件夹而不是主文件夹的code/html

If you are directly changing html from the Xcode, then you should change the code/html of the staging folder, not main folder

在暂存文件夹中,您将获得与主文件夹中相同的结构,但它将直接反映在xcode(iOS)构建中

In the staging folder you will get same structure which you have in the main folder, but it will reflected directly in the xcode (iOS) build

注意:当您从cordova构建/运行中再次构建时,在xcode中所做的更改将被替换,因此在执行cordova命令之前,请在主文件夹中复制您的更改

Note: The changes you made in the xcode will be replace when you build again from the cordova build/run, so please copy your changes in the main folder before doing firing cordova commands

您可以从以下答案中获取更多信息:

You can get more information from this answer: Purpose of Staging folder in PhoneGap 3.4? Only changes to index.html in this folder get recognized?

这篇关于在构建和模拟时未更改或更新Cordova + Xcode 7.3(html + Javascript)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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