Xcode4上的Phonegap Build vs. Phonegap? Config.xml? [英] Phonegap Build vs. Phonegap on Xcode4? Config.xml?

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

问题描述

有一个使用phonegap构建的应用程序,我已经使用


Have an application built with phonegap that I've already compiled and tested using the http://build.phonegap.com service.

I'm finding it builds differently with XCode then it did on the Phonegap website.

On phonegap website icons and splash screens found within my config.xml file are found and used.

On XCode the App ends up using the default icon and splash page.

Also my config.xml uses

<access origin="*" />

Which is needed for my application to work. On the Phonegap website this works but on XCode its not seen and the Application doesn't work.

Does phonegap with XCode not use the config.xml? If not how can I add...

<access origin="*" />

解决方案

UPDATE AS OF CORDOVA 2.3.0 - February 24th 2013

IOS phonegap/cordova builds using XCode now need a config.xml

See http://shazronatadobe.wordpress.com/tag/cordova-plist/ for more information


OLD ANSWER STILL RELAVENT IF USING ANYTHING UNDER CORDOVA 2.3.0

I'm now 90% sure that the config.xml file is not used. With XCode you can easily select your icons and splash pages with the GUI.

Instead of using...

<access origin="*" />

in the config.xml file. You look through your file structure for the Cordova.plist. When you click it you'll see several items in the main page. Look for the option called 'ExternalHosts' you'll have to add * as an item there.

Like so...

Information found at http://samcroft.co.uk/2011/updated-loading-data-in-phonegap-using-jquery-1-5/

这篇关于Xcode4上的Phonegap Build vs. Phonegap? Config.xml?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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