Recently I started to develop a physics based SpriteKit game and found weird issue of memory leak. I have been using XCode 7.2 while developing the game. I noticed my game taking memory though I didn’t add much sprite and I checked carefully of remove nodes from scene.
After a lot of debugging and testing I found the reason. This is the physics drawing code by Apple which create memory leak. So if you face this issue while developing your game, either make it false or remove the line together.
skView.showsPhysics = true //create continuous memory leak
Though we don’t show physics in release mode, but still if you don’t know the reason of memory leak it will waste your time.
Originally Posted in: thinkdiff.net