iOS Constantly growing memory usage-Collection of common programming errors
I’m currently working on a game I started a while ago. Progress was good and everything runs smoothly, but I decided to try using XCode Instruments to check for any leaks in my code. I am using ARC and new objects are only added when others are deleted (part of my game’s inner-workings), but the total memory size keeps growing as it runs.
My game is completely procedurally generated and requires no assets, it also only uses a couple polygons mapped only with colors, so there are no textures. I expect it should only need a couple MBs to run (which it starts out with) but it just keeps growing.
Now, I noticed something interesting… What uses up the majority of the data is an entry called IOAccelResource. Which is odd because I don’t use any accelerometer/gyroscope/compass data. I don’t even have the CoreMotion framework referenced in my project.
The second major use of data is a collection of four mallocs that keep growing. There are a couple more that stay relatively the same.
These two entries aren’t considered leaks by the program though. And when I tell XCode to analyze my code it doesn’t point to any problems.
All of the other entries are pretty small and fluctuate around the same point, or just stay the same.
Here is a screenshot of the troublesome entries: 
Any advice?