How can I avoid these circular references in my GameKit game? I'm using GKAgents2D and GKBehaviours

I posted a question on Stack Overflow regarding memry leaks in my spritekit game. I've had no response on the subject, I thought maybe posting it here could get me the help I need:


https://stackoverflow.com/questions/49899421/how-can-i-avoid-these-circular-references-in-my-gamekit-game-im-using-gkagents