CatNap Memory Leak?

Hi,
I’m currently working through the CatNap example game and have noticed the memory usage gradually increasing as the game runs with the cat sitting idle - eventually the game is being shutdown by iOS due to memory usage.

Is there a known memory leak with the game or is it possible I’ve done something to cause this?

Thanks!

Answered my own question by digging a little more into this:

It seems that setting “showsPhysics” to true on the SKView in GameViewController.swift in order to see the PhysicsBody on each node is causing the memory leak.

Turned that setting off and the game is now stable.

Thanks for posting this. I ran into this making DropCharge as well. Set “showsPhysics” to false and fixes the memory leak.

As a related topic do you have to turn these settings to false before submitting to app store?
skView.showsFPS = true
skView.showsNodeCount = true
skView.showsPhysics = true