手机间隙闪屏中的NSInternalInconsistencyException

时间:2013-07-30 08:48:16

标签: ios cordova splash-screen

我在IOS上使用PhoneGap 2.9.0并为iPhone5构建应用程序 我正在尝试更改启动画面,我按照了电话空白解释 我的行动:
1.在iPhone项目中 - >资源 - >飞溅我添加了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

我做错了什么?

1 个答案:

答案 0 :(得分:2)

使用下面的代码并删除plugins标记(config.xml)中的上述代码

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