我刚刚将 iOS 应用程序中的 Phonegap 升级到了 2.2.0 版。
当我在我的设备上运行它时,我收到此错误并且应用程序在启动期间崩溃:
2012-12-12 15:01:17.810 MyProject.de[662:907] -[__NSCFBoolean isEqualToString:]: unrecognized selector sent to instance 0x3da29530
2012-12-12 15:01:17.812 MyProject.de[662:907] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFBoolean isEqualToString:]: unrecognized selector sent to instance 0x3da29530'
*** First throw call stack:
(0x3b9152a3 0x3580497f 0x3b918e07 0x3b917531 0x3b86ef68 0xc62bb 0x1671f 0x34a6658d 0x34aa6d71 0x34aa2ae5 0x34ae41c9 0x15a03 0x34aa7ad1 0x34aa765b 0x34a9f843 0x34a47c39 0x34a476cd 0x34a4711b 0x39c2a5a3 0x39c2a1d3 0x3b8ea173 0x3b8ea117 0x3b8e8f99 0x3b85bebd 0x3b85bd49 0x34a9e47d 0x34a9b2f9 0x153f9 0x15390)
libc++abi.dylib: terminate called throwing an exception
是什么赋予了?
更新:我通过浏览代码并逐步删除行进行了一些研究。
据我所知,崩溃发生在didFinishLaunchingWithOptions的两个地方:
一个在这里:self.viewController.useSplashScreen = YES;
另一个在这里[self.window makeKeyAndVisible];
如果我删除这两行,应用程序不会崩溃,但也不会加载我的 index.html