简体   繁体   English

无法在我的XCode项目中找到Cordova.plist

[英]Cant find Cordova.plist in my XCode Project

I am trying to add a domain url to my Whitelist. 我正在尝试将域URL添加到我的白名单中。 The instructions say I must find the Cordova.plist file in AppName/Supporting Files/Cordova.plist but I dont have a directory called Supporting Files either. 说明说我必须在AppName/Supporting Files/Cordova.plist找到Cordova.plist文件,但我也没有名为Supporting Files的目录。

I only have a myapp-Info.plist file and I cannot see where to add items to the whitelist on it. 我只有一个myapp-Info.plist文件,我无法看到将项目添加到白名单的位置。

I am using Cordova 2.7.0. 我使用的是Cordova 2.7.0。 Does anyone know what I should be doing? 有谁知道我应该做什么?

In cordova 2.7.0 you wont be able to find Cordova.plist , it has been removed from some previous version onwards, instead you can see a config.xml , you can set domain url to whitelist in config.xml as shown: 在cordova 2.7.0中,您将无法找到Cordova.plist ,它已从以前的某个版本中删除, 而您可以看到config.xml ,您可以在config.xml中将域URL设置为白名单,如下所示:

<access origin="*" />   // for all url

or 要么

<access origin="your url" />

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM