This would be just as impossible in a well-designed version of iOS that allowed arbitrary app installation - iOS could do client-side attestation, and app developers could choose to prevent users from playing online matches with app versions that aren't attested by Apple (or a hypothetical Steam for iOS, for instance).