How to run parallel test for iOS when the driver is static


When I run parallel test, if the driver is static, sometimes the tests/actions run on the same device. This works smoothly if the driver is not static. If it is not static, I cant use multiple classes for different pages as it is causing java lang stackoverflow error.
Can someone help me to do parallel test with multiple classes involved?
Thanks in advance.