PhoneGap,iOS 6.1在启动时显示奇怪的警报,并在加载屏幕上挂起 [英] PhoneGap, iOS 6.1 shows weird alert on launch and hangs at load screen
问题描述
我在Sencha Touch 2.1.1中建立了这个应用程式。它使用PhoneGap打包。它作为一个打包的Web应用程序运行良好。一旦模拟器中的应用程序通过初始Cordova初始屏幕,我会收到一个alertbox此警报:
I've built the app in Sencha Touch 2.1.1. It's packaged using PhoneGap. It runs fine as a packaged web app. As soon as the app in the simulator gets past the initial Cordova splash screen I get an alertbox this alert:
我不确定导致此警报的原因。此外,我单击确定后,它只挂在加载屏幕。
I'm not sure what's causing this alert. Also, after I click OK it just hangs at the loading screen.
推荐答案
也许这个答案可能对找到这个问题寻找解决方案的人有用。我有同样的问题,我解决了:问题是,我的iOs项目中的cordova-2.7.0.js文件是在Android中生成,然后复制到iOs项目。
Maybe this answer can be useful for someone else who find this question searching for a solution. I had the same problem and I solved it: the problem was that the cordova-2.7.0.js file in my iOs project was generated in Android and then copied in the iOs project.
注意:
cordova-xxxjs文件是PLATFORM DEPENDENT。所以你必须包括正确的一个。
Beware: the cordova-x.x.x.js file is PLATFORM DEPENDENT. So you have to include the right one.
这篇关于PhoneGap,iOS 6.1在启动时显示奇怪的警报,并在加载屏幕上挂起的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!