Phonegap 构建压缩应用程序一次编译?为什么要这样做?

Phonegap build squashing app once compiled? Why is it doing this?

我在一家创建应用程序的公司工作,我正在使用 PhoneGap 创建应用程序。我将正确的组件上传到 Adob​​e 的 phonegap 构建服务,并在我的 iPhone 6+ 上下载了 IPA 文件。但是,当我启动它时,它看起来像这样:

如您所见,该应用程序被严重压扁,但在 iOS 的官方 phonegap 应用程序上,它可以完美运行,没有任何问题;因此让我相信这与我的文件结构或 XML 文件有关。如果有人能指出正确的方向来修复它,那就太好了。

您的 config.xml 需要正确的启动画面。如果你不定义它们,你会得到一个更小的屏幕。

    <gap:splash gap:platform="ios" width="640" height="1136"  src="splash_iphone_5.png" />
    <gap:splash gap:platform="ios" width="750" height="1334"  src="splash_iphone_6.png" />
    <gap:splash gap:platform="ios" width="1242" height="2208"  src="splash_iphone_6p.png" />

也许你也想念<preference name="fullscreen" value="true" />