# 3.7.0: iOS build with --prod not working

**URL:** <https://forum.ionicframework.com/t/3-7-0-ios-build-with-prod-not-working/107061>\
**Category:** ionic-v3\
**Created:** [September 28, 2017, 5:29pm UTC](https://forum.ionicframework.com/t/3-7-0-ios-build-with-prod-not-working/107061 "2017-09-28T17:29:14Z")\
**Posts on this page:** 1\
**Showing post:** 24

<div class="post-metadata">

**Author:** ![rindegastos](https://avatars.discourse-cdn.com/v4/letter/r/49beb7/32.png) [@rindegastos](https://forum.ionicframework.com/u/rindegastos)\
**Post date:** [December 7, 2017, 12:18am UTC](https://forum.ionicframework.com/t/3-7-0-ios-build-with-prod-not-working/107061/24 "2017-12-07T00:18:25Z")

</div>

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.

---

_[View the full topic](https://forum.ionicframework.com/t/3-7-0-ios-build-with-prod-not-working/107061)._
