1

我在 IOS 上使用 PhoneGap 2.9.0 并为 iPhone5 构建应用程序。
我正在尝试更改启动画面,我按照 phonegap 解释
我的操作:
1. 在 iPhone 项目 -> 资源 -> splash 我添加了 Default-568h@2x~iphone.png
2. 在 phonegap www 的资源中 - > res -> 屏幕 -> ios。
3. 添加到config.xml

<gap:splash src="www/res/screen/ios/Default-568h@2x~iphone.png" gap:platform="ios" width="320" height="568" />

After that I have next exception (at the line I added the gap:splash):
2013-07-30 11:29:45.678 Test[1625:c07] Multi-tasking -> Device: YES, App: YES
2013-07-30 11:29:45.681 Test[1625:c07] *** Assertion failure in -[CDVConfigParser parser:parseErrorOccurred:], /Users/Giora/Desktop/POCS/Test/CordovaLib/Classes/CDVConfigParser.m:93
2013-07-30 11:29:45.683 Test[1625:c07] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'config.xml parse error line 55 col 46'
*** First throw call stack:
(0x16b012 0x28c9e7e 0x16ae78 0x1557f35 0x72fa2 0x15a02d8 0x58b52af 0x58cf745 0x58d725a 0x58d94e5 0x58d8f07 0x15a01ce 0x15a0160 0x15a0416 0x15a04ca 0x53d78 0x52bf0 0x52cbe 0x7b959 0x48546e 0x52d4e 0x7b9bd 0x7b47b 0x3a37b7 0x3a3da7 0x3a4fab 0x3b6315 0x3b724b 0x3a8cf8 0x36fbdf9 0x36fbad0 0xe0bf5 0xe0962 0x111bb6 0x110f44 0x110e1b 0x3a47da 0x3a665c 0x7b15c 0x7b0b9)
libc++abi.dylib: terminate called throwing an exception

我做错了什么?

4

1 回答 1

2

使用下面的代码并在插件标签(config.xml)中删除上面的代码

<feature name="SplashScreen"> <param name="ios-package" value="CDVSplashScreen" /> </feature>

于 2014-01-11T09:43:34.973 回答