IPad crashes when tapping with 10 fingers

IPad crashes when tapping with 10 fingers.
Please correct “CCEAGLView-ios.mm”.
Tap beyond IOS_MAX_TOUCHES_COUNT to crash.

The value is 10, why it crash tapping with 10 fingers? Should we need more than 10 touches?

Crash when using ipad with 2 people.
iPad recognizes over 10 fingers.

A simple example of correction:

for (UITouch *touch in touches) {

if(i>=IOS_MAX_TOUCHES_COUNT)
{
break;
}
}

There is limit i think for 15 touches.

I’m assuming it is something related to same issue:

Multi guys on one device!

Good case.

I sent a PR to fix it: https://github.com/cocos2d/cocos2d-x/pull/18082