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.

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 IL2CPP freeze while exporting android project in unity 2017.4.2 . Stuck on "Building native binary with IL2CPP" - Questions & Answers - Unity Discussions I decided to go back and covert those to database tables. Doing so allowed a successful build.