3.7.0: iOS build with --prod not working

I hope this solution helps everyone. To avoid executing the command with the --max-old-space-size=4096 I ended up changing the /bin/ionic or the ionic.cmd (windows) to the following:

#!/bin/node --max_old_space_size=4096

This way the --max-old-space-size=4096 is passed everytime and you can run all the commands normally.

1 Like