Xcode4 ExternalHosts in .plist [英] Xcode4 ExternalHosts in .plist

查看:185
本文介绍了Xcode4 ExternalHosts in .plist的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚开始使用Xcode和Mac环境,我正在尝试设置一个PhoneGap / Cordova应用程序,我得到一个

I'm new to Xcode and Mac environment, I'm trying to set up a PhoneGap / Cordova app and I'm getting a

ERROR whitelist rejection

我做了彻底的Google搜索,

I did a thorough Google Search and everything said I needed to edit my .plist file and add to the ExternalHosts key.

我的应用程序没有一个ExternalHosts键,所以从我在网络上看到的随机图片我添加了一个ExternalHosts键作为一个数组,并尝试添加我需要的网站,现在我的Xcode .plist文件看起来像这样:

Well my application didn't have an ExternalHosts key so from random pictures I saw on the web I added an ExternalHosts key as an array and attempted to add the sites I needed so now my Xcode .plist file looks something like this:

正如你看到的,我尝试了域方式和一个实际的URI,但我仍然得到相同的白名单拒绝错误。

As you can see I tried both the domain way and an actual URI, but I'm still getting the same whitelist rejection error.

有人可以指出正确的方向如何使这项工作吗?

Can someone point in the right direction of how to get this working?

推荐答案

我想出来了。我尝试添加ExternalHosts到应用程序构建文件。

I figured it out. I was attempting to add ExternalHosts to the app build file.

找到我正在寻找的文件是在/资源/支持文件/ Cordova(| Phonegap).plist

Found out the file I was looking for is under /Resources/Supporting Files/Cordova(|Phonegap).plist

这篇关于Xcode4 ExternalHosts in .plist的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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