IL2CPP Android build crashes Mac
When trying to build a Google App Bundle, every time the process gets to the step that says Building Native Binaries With IL2CPP I get a “Your system has run out of application memory” error and my MacBook reboots.
The project built no problem on Mono, but now that Google is demanding a 64 bit version, that’s not an alternative.
I’m running Unity 2019.2.2. MacOS Mojave. I have a new MacBook Pro with 16GB of RAM. So, I don’t think it’s a hardware issue.
I’ve done everything I can find in the forums. My Java is the right version, I have the NDK version that Unity 2019 requires. I’ve tried every solution I can find online. Any hello would be much appreciated.
Answer by alagrad94 · Sep 03, 2019 at 04:51 PM
Solved! I'm building a word game and I had initially hard coded all of my acceptable words with a List for each letter because I was not planning to incorporate a database into the app. Some of them, like S had almost 20K words on the list. I did eventually end up adding a database for other reasons. After reading this post https://answers.unity.com/questions/1508131/il2cpp-freeze-while-exporting-android-project-in-u.html I decided to go back and covert those to database tables. Doing so allowed a successful build.
Your answer
Follow this Question
Related Questions
Problem with Unity 2018.4.24 on Big Sur 0 Answers
icl2pp not building correctly for android.,IL2cpp not building correctly for android. Mono worked. 1 Answer
I am getting compile error with il2cpp for android (Unity 5.2.2p3) 3 Answers
Android IL2CPP compile error for Unity 5.4.0f3 2 Answers
Failed running il2cpp.exe --platform="Android" --architecture="x86" 1 Answer