【问题标题】:Naming splash screen files for IOS in config.xml (Phonegap)在 config.xml (Phonegap) 中为 IOS 命名闪屏文件
【发布时间】:2026-01-24 08:05:01
【问题描述】:

我们正在为我们的应用程序使用 phonegap,现在我们在 conig.xml 中添加启动画面,但是在阅读了有关文件名称的 IOS 和 Phonegap 文档后,我们有点困惑。

Phonegap 文档说:

<gap:splash src="splash/ios/Default.png" gap:platform="ios" width="320" height="480" /><gap:splash src="splash/ios/Default_at_2x.png" gap:platform="ios" width="640" height="960"/>
<gap:splash src="splash/ios/Default_iphone5.png" gap:platform="ios" width="640" height="1136" />
<gap:splash src="splash/ios/Default-Landscape.png" gap:platform="ios" width="1024" height="748" />
<gap:splash src="splash/ios/Default-Portrait.png" gap:platform="ios" width="768" height="1004" />

<!-- retina iPad support: PhoneGap 2.5.0+ only -->
<gap:splash src="splash/ios/Default-Landscape_at_2x.png" gap:platform="ios" width="2048" height="1496" />
<gap:splash src="splash/ios/Default-Portrait_at_2x.png" gap:platform="ios" width="1536" height="2008" />

IOS 文档说:

<basename><usage_specific_modifiers><scale_modifier><device_modifier>.png

默认-568h@2x~iphone.png (640x1136 像素) Default-Landscape@2x~ipad.png (2048x1496 像素) Default-Landscape~ipad.png (1024x748 像素) Default-Portrait@2x~ipad.png (1536x2008 像素) Default-Portrait~ipad.png (768x1004 像素) Default@2x~iphone.png (640x960 像素) Default~iphone.png (320x480 像素)

我们应该像 IOS 文档所说的那样重命名 config.xml 中的名称还是 phonegap build 是谁做的?

谢谢!

【问题讨论】:

  • 如果您使用终端创建项目,则无需更改启动图像。自动启动在当前版本上创建的图像和启动器图标名称。而且我现在检查了使用终端创建项目时 config.xml 中没有对启动画面的引用。对我来说很好。

标签: ios iphone ipad cordova phonegap-build


【解决方案1】:

Phonegap build 做到了。那是我的编译(重命名 .ipa 到 .zip)从 phonegap 构建,我在我的签入代码中没有这些名称。 . .

【讨论】: