phonegap config.xml设置不工作 [英] phonegap config.xml settings not working

查看:113
本文介绍了phonegap config.xml设置不工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个phonegap ios应用程序,我用来构建与phonegaps远程服务。
https://build.phonegap.com/



我有一些设置在config.xml的工作只是perfekt有。例如:

 < preference name =orientationvalue =landscape/> 
< preference name =target-devicevalue =tablet/>
< preference name =webviewbouncevalue =false/>

现在我想在我的Mac上本地构建,但无法使设置工作。 / p>

我有phonegap 3.3.0并运行以下命令:
phonegap build ios
phonegap install ios



应用程序现在以纵向模式在iPhone模拟器中打开。无法找出为什么我的设置不工作。

解决方案

我刚刚有同样的问题Cordova版本3.5.0 -0.2.1在iOS上使用XCode 5.不知道这是怎么发生的 - 但是当我在我的-info.plist文件中,有两个条目支持的接口方向。一个只限于景观(我想要的),另一个包含景观和肖像。删除纵向条目使此工作成功。



我已经更新了config.xml,并从应用程序的包中验证了正确的信息包含在编译的应用程序中。


I have a phonegap ios app that I used to build with phonegaps remote services. https://build.phonegap.com/

I have a few settings in config.xml that works just perfekt there. For example:

<preference name="orientation" value="landscape" />
<preference name="target-device" value="tablet" />
<preference name="webviewbounce" value="false" />

Now I want to build is locally on my Mac but can't get the settings to work.

I have phonegap 3.3.0 and run the following: phonegap build ios phonegap install ios

The app now opens in an iPhone emulator in portrait mode. Can't figure out why my settings isn't working.

解决方案

I just had the same problem with Cordova version 3.5.0-0.2.1 on iOS using XCode 5. Not sure how this happened - but when I looked in my -info.plist file there were two entries for "Supported interface orientations". One was limited to landscape only (what I wanted) and the other contained both landscape and portrait. Deleting the portrait entries made this work.

I had already updated config.xml and verified from the app's package that the correct info was included in the compiled app.

这篇关于phonegap config.xml设置不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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