0

I am using Worklight v5.0.5 and have created a Worklight Hybrid application; I am running the app on iOS v5.1.1, compiled with Xcode 4.6.

When I execute the application in the iPad from Xcode - the iPad connected with the USB cable to the Mac - the application starts fine, I see the splash screen and then the login page.

If I disconnect the USB cable I'm not able to run the application again. Once I kill the application from the iPad, or stopping it ib Xcode before disconnecting the USB cable, I'm not able to start it again, the application does not go past the splash image.

Similarly, if I generate an .ipa and I install the it via the IBM Worklight Application Center then the first time I start the application it is fine, but if I kill the application (click twice the home button and so on...) then the next time I start the application it won't go past the splash image as well.

Any hint?

4

1 回答 1

0

我注意到类似的行为,与您描述的情况不同。对我来说,这有帮助:

断开设备与 Mac 的连接后,我已确保以与您相同的方式退出应用程序并关闭 iPad(不是关闭,只需单击电源按钮关闭显示),然后尝试运行应用程序再次。您也可以尝试关闭 iPad。如果这有帮助,这不是 Worklight 问题...


根据对此答案的评论#3,它揭示了手头的问题:

一旦创建了一个应用程序 - 例如名称为“newApp”。这个值,“newApp”在整个项目中的多个位置被引用 - HTML 文件名,在 application-descriptor.xml 中,对应用程序的 CSS 和 JS 文件的引用,可能还有另外一两个引用。

不支持更改此值。改变它确实会导致这个问题中描述的内容,以及其他奇怪的东西。还原更改,应用程序将运行。

于 2013-04-30T04:38:48.503 回答