There are number of questions with similar title but none them of helped me.
but i can relate solution of this 'NSGenericException', reason: Collection <
if your current array is A,you can copy another same array called B,then you can enumerate B and operate A,then it will not crash.