Terminated due to memory issue

Hi there, I have a big problem. I'm making a game for Android and iOS, android everything works fine but when I test the game in xcode with my Iphone, when I start a battle suddenly the memory increases, and after 4 or 5 battles the game closes and the console says "Message from debugger: Terminated due to memory issue" And this is only happening in iOS, not in android.
I started an empty project and the same result, is a problem from Xcode I think, but I don't know what Is it.


Any idea?


Thanks
So this happened on a blank project that you put in Xcode? I assume this is using the iOS simulator, so how much RAM does your Mac have? Is it the simulator that closes, or the app inside the simulator? If it's the simulator, it's possible that the Mac itself is running out of memory. and so it has to close the simulator to prevent the whole system from going down.
So this happened on a blank project that you put in Xcode? I assume this is using the iOS simulator, so how much RAM does your Mac have? Is it the simulator that closes, or the app inside the simulator? If it's the simulator, it's possible that the Mac itself is running out of memory. and so it has to close the simulator to prevent the whole system from going down.

Hi! Thanks for the answer. 
I installed the game in my phone and same, my phone have 1GB RAM the app closes. The increment of RAM only starts in battles, if I play normally nothing happens, but in battle the RAM on phone begins to increase... but only on iOS.
This has happened before, like in this post: 






But their solution does not work for me.
then their problem was most likely something different.


Some questions:


Have you changed the hue on the battlers in the battles where this happens?


Which MV version is the blank project based on/made by?


I've moved this thread to MV Deployment. Please be sure to post your threads in the correct forum next time. Thank you.
then their problem was most likely something different.


Some questions:


Have you changed the hue on the battlers in the battles where this happens?


Which MV version is the blank project based on/made by?


I've moved this thread to MV Deployment. Please be sure to post your threads in the correct forum next time. Thank you.

Nope, I'm not changing anything, I made a new project to test if any of mine plugins are the ploblem and nope, I only made 1 mape, no plugins and battles, and after 4th battle the game crashes. My version is 1.3.0
I've found something. When the map changes, (When I transfer the player, when the battle begins or ends) there're memory leaks which reach a lot of memory, but only in that moment, then the memory becomes normal...well not at all, for example, normal memory is 30MB, when enters the battle 100MB...then 35MB....and rising everytime until the game crashes...after 3 or 4 battles
After all I found the solution, if someone is having the same problem. Download the FPS plugin of Yanfly. Turn it on since the beginning and it fixes the problem.

Original thread: https://forums.rpgmakerweb.com/threads/terminated-due-to-memory-issue.67700/