Most stable way to build the app

Dear Experts,

I am using Ionic 3 where Firebase is the backend. Ionic info details are as follows:


   Ionic CLI          : 5.2.3 (/usr/local/lib/node_modules/ionic)
   Ionic Framework    : ionic-angular 3.9.2
   @ionic/app-scripts : 3.2.1


   Cordova CLI       : 7.1.0
   Cordova Platforms : android 6.4.0
   Cordova Plugins   : cordova-plugin-ionic-webview 4.1.1, (and 23 other plugins)


   cordova-res : 0.6.0
   native-run  : not installed


   ios-deploy : 1.9.4
   NodeJS     : v10.0.0 (/usr/local/bin/node)
   npm        : 5.6.0
   OS         : macOS High Sierra
   Xcode      : Xcode 10.1 Build version 10B61

Whenever i build the file it is always so difficult because of plugins, cordova, android version. It usually take few days to debug the code every time before i manage to make a build.

If i update it to the latest version then it is going to break my app because of changes in Angular Firebase latest version. There is always some or the other compatibility issue.

Please suggest most stable way to build the app. Appreciate your help in advance.