Objective c 错误:“试图执行另一个操作,但已在进行提取”,仅在iOS 6中

Objective c 错误:“试图执行另一个操作,但已在进行提取”,仅在iOS 6中,objective-c,ios7,ios6,xcode5,Objective C,Ios7,Ios6,Xcode5,由于未捕获的异常“NSInternalInconsistencyException”,正在终止应用程序,原因是:“试图在提取已在进行的情况下执行另一个操作” 第一次我的应用程序工作正常。但是每次我的应用程序由于上述错误而崩溃后,它只发生在iOS6版本的设备上。但我的应用程序在iOS7或更高版本的设备上运行良好 下面是堆栈跟踪: ( 0 CoreFoundation 0x32e5b2bb <redacted> + 186 1 libob

由于未捕获的异常“NSInternalInconsistencyException”,正在终止应用程序,原因是:“试图在提取已在进行的情况下执行另一个操作”

第一次我的应用程序工作正常。但是每次我的应用程序由于上述错误而崩溃后,它只发生在iOS6版本的设备上。但我的应用程序在iOS7或更高版本的设备上运行良好

下面是堆栈跟踪:

(
0   CoreFoundation                      0x32e5b2bb <redacted> + 186
1   libobjc.A.dylib                     0x3aadb97f objc_exception_throw + 30
2   CoreData                            0x32bf5207 <redacted> + 94
3   CoreData                            0x32bf591d <redacted> + 92
4   CoreData                            0x32c06387 <redacted> + 58
5   CoreData                            0x32c04d19 <redacted> + 624
6   CoreData                            0x32bfe089 <redacted> + 312
7   CoreData                            0x32bfd73f <redacted> + 682
8   CoreData                            0x32bfd205 <redacted> + 468
9   CoreData                            0x32bfc61d <redacted> + 1644
10  CoreData                            0x32bfaf17 <redacted> + 646
11  WhatDidIWear                        0x000b1875 -[WDIWDatabase(Years) years] + 848
12  WhatDidIWear                        0x000a9b2d -[WDIWCalendar years] + 56
13  WhatDidIWear                        0x00095c8f -[YearsViewController initWithNibName:bundle:] + 382
14  WhatDidIWear                        0x000945bb -[TemplateViewController initWithDefaultNibName] + 62
15  WhatDidIWear                        0x00093567 -[TabBarController yearsVC] + 134
16  WhatDidIWear                        0x00093713 -[TabBarController homeViewControllers] + 46
17  WhatDidIWear                        0x0008f49b -[TabBarController viewDidLoad] + 510
18  UIKit                               0x34cf82d5 <redacted> + 228
19  WhatDidIWear                        0x0008e927 -[AppDelegate tabBarController] + 134
20  WhatDidIWear                        0x0008de65 -[AppDelegate application:didFinishLaunchingWithOptions:] + 980
21  UIKit                               0x34cc3ad9 <redacted> + 252
22  UIKit                               0x34cc3663 <redacted> + 1190
23  UIKit                               0x34cbb84b <redacted> + 698
24  UIKit                               0x34c63c39 <redacted> + 1004
25  UIKit                               0x34c636cd <redacted> + 72
26  UIKit                               0x34c6311b <redacted> + 6154
27  GraphicsServices                    0x369555a3 <redacted> + 590
28  GraphicsServices                    0x369551d3 <redacted> + 34
29  CoreFoundation                      0x32e30173 <redacted> + 34
30  CoreFoundation                      0x32e30117 <redacted> + 138
31  CoreFoundation                      0x32e2ef99 <redacted> + 1384
32  CoreFoundation                      0x32da1ebd CFRunLoopRunSpecific + 356
33  CoreFoundation                      0x32da1d49 CFRunLoopRunInMode + 104
34  UIKit                               0x34cba485 <redacted> + 668
35  UIKit                               0x34cb7301 UIApplicationMain + 1120
36  WhatDidIWear                        0x0008d97f main + 230
37  libdyld.dylib                       0x3af12b20 <redacted> + 0

我现在对没有解决上述错误感到沮丧


请给我一个解决上述问题的方法。

发布stacktrace。如果没有它,您将永远无法找到问题所在,但这需要很长时间。@trojanfoe-请参考上面的stacktrace。异常是由CoreData生成的,但由于我不使用CoreData,我对绝对原因没有实际经验。我的直觉是,在开始另一个事务之前,你没有关闭一个语句,或者其他类似的语句。同样,这个应用程序已经由其他人创建,我必须更新其中的一些功能。我对CoreData没有任何经验。哦,好吧,你会得到一些。