# Exception with livereload when using flag "UseModernBuildSystem"

**URL:** <https://forum.ionicframework.com/t/exception-with-livereload-when-using-flag-usemodernbuildsystem/142728>\
**Category:** Ionic Framework\
**Created:** [September 25, 2018, 5:53am UTC](https://forum.ionicframework.com/t/exception-with-livereload-when-using-flag-usemodernbuildsystem/142728 "2018-09-25T05:53:06Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![MattE](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/matte/32/66712_2.png) [@MattE](https://forum.ionicframework.com/u/MattE)\
**Post date:** [September 25, 2018, 7:02am UTC](https://forum.ionicframework.com/t/exception-with-livereload-when-using-flag-usemodernbuildsystem/142728/2 "2018-09-25T07:02:37Z")

</div>

What happens when you add a build.json (see post below) and remove the buildFlag from the command-line?

> [@How to build Ionic Cordova with Xcode 10?](https://forum.ionicframework.com/t/how-to-build-ionic-cordova-with-xcode-10/142044/13):
>
> For the record: adding a build.json to the root of the project is the easier solution. With this file it isn’t necesary anymore to do some magic with commands and you can continue to use the normal Ionic CLI commands. build.json: { "ios": { "debug": { "buildFlag": ["-UseModernBuildSystem=0"] }, "release": { "buildFlag": ["-UseModernBuildSystem=0"] } } }

---

_[View the full topic](https://forum.ionicframework.com/t/exception-with-livereload-when-using-flag-usemodernbuildsystem/142728)._
