保存manageObjectContext时Swift未捕获异常

时间:2016-04-01 17:34:44

标签: ios database swift crash nsmanagedobjectcontext

因此,在我正在开发的应用程序中,我有多线程。有一些线程从appeDelegate调用managedObjectContext并更新数据库,并调用相同的managedObjectContext来检索数据。

有时我在这一行会收到以下错误。

enter image description here

2016-04-01 19:23:41.094 Tamil League[878:219638] -[_CDSnapshot_Matches_ values]: unrecognized selector sent to instance 0x17e5c790
2016-04-01 19:23:41.095 Tamil League[878:219638] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[_CDSnapshot_Matches_ values]: unrecognized selector sent to instance 0x17e5c790'
*** First throw call stack:
(0x245362eb 0x23d02dff 0x2453bab5 0x2453970f 0x24468c88 0x25d31985 0x25d31343 0x25c925fd 0x25c91375 0x25c5e8c1 0x25d1a4d7 0x25d22b47 0x149acab 0x14a44a3 0x25d14929 0x25c5e3b7 0x25c813ab 0xe0e70 0xdd9c4 0x24a3796d 0x24a46ef7 0x24d3a52d 0x24c9beff 0x24c8e2ef 0x24d3c7ed 0x14a55c3 0x149defb 0x14a6ab7 0x14a6909 0x2426ce0d 0x2426c9fc)
libc++abi.dylib: terminating with uncaught exception of type NSException

我试图在网上搜索,但没有改善我的问题。有谁知道如何在swift 2.0中解决这个问题?

0 个答案:

没有答案