I have this crash:objc_retains in my code.
My project is ARC.
Then I add a symbolic breakpoint whose Symbol is "objc_retain" and Module is "libobjc.A.dylib".
And I found it finally crash at this file of "BlocksKit":
+ (void)associateCopyOfValue:(id)value withKey:(const char *)key {
objc_setAssociatedObject(self, key, value, OBJC_ASSOCIATION_COPY_NONATOMIC);
}
If I didn't use the function "performBlock..." of "BlocksKit", it works:
- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
//if I delete the code below, it works
[self performBlock:^(id sender) {
NSLog(@"hit");
} afterDelay:0.3f];
}
I had debug this for several days, but I can't solve this problemT_T Could anyone help me?
This is my project: http://www.mediafire.com/download/hppnt7k491y5f1k/QQSDKDemo.zip
This is the call stack:
callStack :(
0 QQSDKDemo 0x00008b8e +[NSObject(A2BlockDelegateBlocksKitPrivate) bk_accessorsMap] + 142
1 QQSDKDemo 0x00008de1 +[NSObject(A2BlockDelegateBlocksKitPrivate) registerDynamicDelegateNamed:forProtocol:] + 81
2 QQSDKDemo 0x00009f58 +[MFMailComposeViewController(BlocksKit) load] + 136
3 libobjc.A.dylib 0x019657f5 call_load_methods + 437
4 libobjc.A.dylib 0x01967de5 load_images + 133
5 ??? 0x8fef0c32 0x0 + 2414808114
6 ??? 0x8feff252 0x0 + 2414867026
7 ??? 0x8feff0ba 0x0 + 2414866618
8 ??? 0x8fef0e05 0x0 + 2414808581
9 ??? 0x8fef4adb 0x0 + 2414824155
10 ??? 0x8fef0376 0x0 + 2414805878
11 ??? 0x8fef0077 0x0 + 2414805111
)