I use ARC on iOS6 as well. I find it a little strange: gdb remote returned an error: E08
In stacktrace, the before method is on the line that calls the completion block. I read a lot about blocks and ARC, but I'm still not sure about using them in context:
(simplified methods and some codes are excluded)
- (void) method1: (void(^)(NSMutableArray *a)) completionBlock withFailedBlock:(void(^)(NSInteger errorCode,NSString *error)) failedBlock { __weak Controller *weakSelf = self; ... if(condition) completionBlock(weakSelf.a);
call code:
[[Controller sharedController] method1:^(NSMutableArray *a) {
When I check the block and the values ββaround it, they look fine. I also have an NSZombie. My lock completion should be automatically copied as it is referenced inside the block.
What am I missing here? I saw crashes on iOS5 and 4.3, but never deleted gdb remote: E08. Information from the debugger also did not help in these cases. I use PLWeakCompatibility to support __weak under iOS4.3
objective-c automatic-ref-counting ios6 objective-c-blocks
splinter
source share