libc abi.dylib: terminate_handler unexpectedly threw an exception

错误代码:很明显的错误,一定要谨记.

 1 - (NSInteger)giftCountFullScreen{
 2     NSArray *arr = [NSMutableArray arrayWithArray:self.arrayGiftGruop];
 3     for (id data in arr) {
 4         BaseGiftItem *item = (BaseGiftItem *)data;
 5         if ([item.image isEqualToString:@"gift_bamboo"] && [item.price isEqualToString:@"1000"]) {
 6             [arr removeObject:item];
 7         }
 8     }
 9     return arr.count;
10 }
原文地址:https://www.cnblogs.com/lz465350/p/5219796.html