使用自定义URL的直接更新无法在iOS 7.1.2上运行 [英] Direct Update with custom URL not working on iOS 7.1.2

查看:182
本文介绍了使用自定义URL的直接更新无法在iOS 7.1.2上运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于我升级到WL 6.2直接更新在iOS上不再有效。
我想要实现的是直接更新iPad和我的Windows机器。这样我可以在我的Windows机器上开发并使用直接更新将我的更改推送到iPad(iOS 7.1.2)。以下场景描述了我的问题。

Since my upgrade to WL 6.2 direct update isn't working anymore on iOS. What I'm trying to achieve is to get direct update working with the iPad and my windows machine. This way I can develop on my windows machine and use direct update to push my changes to the iPad (iOS 7.1.2). Following scenario describes my problem.

在Mac上的worklight studio中创建一个新的WL项目(今天刚安装了最新的WL插件(platformVersion = 6.2.0.00.20140724-2139) 。添加iOS作为环境,并使用以下代码替换main.js:

Create a new WL project in worklight studio on Mac (just installed the latest WL plugin today (platformVersion=6.2.0.00.20140724-2139). Add iOS as environment and replace the main.js with the following code:

function wlCommonInit(){
    WL.Client.connect({
        onSuccess: onConnectSuccess,
        onFailure: onConnectFailure
    });
}

function onConnectSuccess() {
    WL.Logger.debug("Connect success.");
}

function onConnectFailure() {
    WL.Logger.debug("Connect failed.");
}

将项目作为Xcode项目运行,并使用Xcode将应用程序部署到iPad。现在按照以下步骤重现问题:

Run the project as an Xcode project and use Xcode to deploy the application to an iPad. Now follow the following steps to reproduce the issue:


  1. 在index.html中进行修改

  2. 在eclipse中的本地worklight服务器上重新部署应用程序

  3. 杀死你的应用并重新启动它获得

  4. 直接更新正常,您的更改会反映在您的应用中。是的!

  1. Make a modification in the index.html
  2. Redeploy the app on your local worklight server in eclipse
  3. Kill your app and restart it again
  4. The direct update is working and your changes are reflected in your app. Yeah!

现在作为一个非常基本的下一步,尝试使用自定义服务器URL进行直接更新。加厚iPad设置中的使用自定义网址复选框,并将自定义服务器网址更改为本地服务器的网址。

Now as a very basic next step, try to use the direct update with a Custom Server URL. Thick the Use custom URL checkbox in your iPad settings and change the Custom server URL to the URL of your local server.

更改服务器连接设置http://i59.tinypic.com/35831xx.png

当我现在重试步骤1到3时,直接更新失败。启动时,应用程序通知我有可用的更新,当我点击更新时,会出现下载进度条但永远保持0%。在自定义服务器URL中,我只将IP更改为我的macbook的IP,并在项目名称后删除了破折号。我也尝试将URL更改为我的Windows开发机器的URL(也使用最新的WL eclipse插件),但这会导致相同的行为。

When I now retry step 1 to 3, the direct update fails. On startup the app informs me an update is available, and when I click update the downloading progress bar appears but stays at 0% forever. In the custom server URL I only changed the IP to the IP of my macbook and removed the dash after the project name. I also tried changing the URL to the URL of my windows development machine (also with the latest WL eclipse plugin), but this results in the same behaviour.

最后一句话;我希望当我禁用使用自定义URL复选框时;直接更新将再次有效。但事实并非如此。

One last remark; I would expect that when I disable the Use custom URL checkbox; direct update would work again. But this is not the case.

推荐答案

重新安装eclipse解决了这个问题。重新安装eclipse后,我还在服务器连接设置中获得了自定义服务器URL的正确IP。

Reinstalling eclipse resolved the problem. After reinstalling eclipse I also get the correct IP for the custom server URL in the server connectivity settings.

这篇关于使用自定义URL的直接更新无法在iOS 7.1.2上运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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