I'm using wda as server running. After 3 ~ 6 hours running wda crash with memory warning.
Device log WebDriverAgentRunner-Runner Received memory warning.
I use Instruments to check where is memory leak from, then I found this:

I'm using capability "autoClickAlertSelector" to auto click some system Alert.
XCUIApplication and XCApplicationQuery is system class, and has Cycles reference.
Is there a way to fix this?