IBM Worklight 6.0-应用程序使用了不正确的服务器URL [英] IBM Worklight 6.0 - application uses an incorrect Server URL

查看:100
本文介绍了IBM Worklight 6.0-应用程序使用了不正确的服务器URL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试创建一个使用SQL适配器检索数据的Worklight应用程序.在开发中,一切正常,但是当我将其部署到服务器上时,由于服务器URL错误,因此无法连接到服务器.

I am trying to create a Worklight application that uses SQL adapters to retrieve data. In development it all works well but when I deploy it onto the server it can't connect to the server as it has an incorrect server URL.

然后我必须转到iOS设置并更新自定义服务器URL"字段,并设置使用此标志的标志,然后一切正常.

I then have to go to the iOS settings and update the Custom Server URL field and set the flag to use this and then it all works.

我可以在Settings.bundle-> Root.plist文件中看到此设置.但是,如果更改此值,则每次重新构建时都会覆盖它.在哪里可以设置这些值,以便WL Studio每次构建时都能正确设置此值?

I can see that this set in the Settings.bundle -> Root.plist file. However if I change this value it gets overwritten each time I rebuild. Where can I set these values so that the WL studio will set this value correctly each time it builds?

推荐答案

通过阅读您的问题,这与适配器无关.

From reading your question, this has got nothing to do with adapters.

您确实需要逐步描述应用程序的构建方式.
现在,我觉得您可能正在执行以下操作:

You really need to describe how exactly you've built the application, in steps.
Right now it sounds to me like you may be doing the following:

  1. 为远程服务器构建
  2. 运行方式>>全部构建并部署/运行>> Xcode项目

这些动作当前相互覆盖.

These actions currently overwrite each other.

如果您正在使用Build for Remote Server,则请勿之后再使用Build All/Xcode项目;这将再次用本地的而不是远程的覆盖连接详细信息.

If you are using Build for Remote Server, then do not use Build All / Xcode project afterwards; this will overwrite the connection details again with the local ones instead of the remote ones.

也包含在以下IBM技术说明中: http://www- 01.ibm.com/support/docview.wss?uid=swg21642937

Also covered in the following IBM technote: http://www-01.ibm.com/support/docview.wss?uid=swg21642937

这篇关于IBM Worklight 6.0-应用程序使用了不正确的服务器URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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