-[__NSArrayM objectAtIndex:]: index 4294967295 beyond bounds for empty array with arc4random
- 阅读更多 关于 -[__NSArrayM objectAtIndex:]: index 4294967295 beyond bounds for empty array with arc4random
问题 EDIT: i replaced arc4random() to arc4random_uniform() for fix I'm using test flight to monitor crashes. been fixing bugs, however i encounter this bug, i'm not sure why the index is so big. -[__NSArrayM objectAtIndex:]: index 4294967295 beyond bounds for empty array it is likely that this is where the bug is for (NSUInteger i = 0; i < count; ++i) { // Select a random element between i and end of array to swap with. int nElements = count - i; int n = (arc4random() % nElements) + i; [randomName