创建基于PhoneGap的项目

时间:2012-04-28 06:54:15

标签: cordova sencha-touch extjs sencha-touch-2

我刚刚创建了一个基于Phonegap的项目,但是我收到以下错误:

1)

2012-04-28 12:21:25.862 cordovaApp[1215:fb03] Multi-tasking -> Device: YES, App: YES
2012-04-28 12:21:35.028 cordovaApp[1215:fb03] ERROR whitelist rejection: url='http://docs.phonegap.com/en/edge/guide_getting-started_ios_index.md.html#Getting%20Started%20with%20iOS'

2。)

 Error: executing module function 'setInfo' in module 'cordova/plugin/ios/device'. Have you included the iOS version of the cordova-1.7.0rc1.js file?

为什么会发生这种情况,我该如何摆脱它?

2 个答案:

答案 0 :(得分:3)

您必须将应用将要访问的网址列入白名单。为此,请打开.plist文件并在ExternalHosts键下添加一个条目。

weinre with iPhone simulator

处找到解决方案

答案 1 :(得分:0)

我在html页面的脚本标记中有一个错误的引用,例如

<script type="text/javascript" charset="utf-8" src="cordova-1.8.0.js">

我已经更正了.js文件的正确版本,它运行正常!

相关问题