I have been using the Zbar SDK (1.2) in my project.
This is the crash reported by many users from last 8-9 months:
Message = * Terminating app due to uncaught exception 'NSGenericException', reason: '* Collection was mutated while being enumerated.'
Code:
- (void) imagePickerController: (UIImagePickerController*) reader
didFinishPickingMediaWithInfo: (NSDictionary*) info
{
// ADD: get the decode results
id<NSFastEnumeration> results =
[info objectForKey: ZBarReaderControllerResults];
ZBarSymbol *symbol = nil;
NSLog(@"%@",results);
for(symbol in results)
// EXAMPLE: just grab the first barcode
break;
What's the cause of the problem?