Ios app, Just shows blank screen in "--prod"

It is very strange when i build ios app without “–prod” flag app runs fine.
But when i build ios app with “-prod” flag ionic app dont get loaded.

I just see that index.html is loaded and stops there.
here is the env i am using
Cordova CLI: 6.5.0
Ionic Framework Version: 2.0.1
Ionic CLI Version: 2.2.1
Ionic App Lib Version: 2.2.0
Ionic App Scripts Version: 1.1.3
ios-deploy version: 1.9.0
ios-sim version: Not installed
OS: OS X El Capitan
Node Version: v7.6.0
Xcode version: Xcode 8.2.1 Build version 8C1002

this is list of plugins i was using
plugin name=“cordova-plugin-splashscreen” spec="~4.0.1"/>
plugin name=“cordova-plugin-camera” spec="~2.3.0">
variable name=“CAMERA_USAGE_DESCRIPTION” value=“XXXX”/>
variable name=“PHOTOLIBRARY_USAGE_DESCRIPTION” value=“XXXX”/>
plugin>
plugin name=“cordova-sqlite-storage” spec="~1.5.0"/>
plugin name=“cordova-plugin-contacts” spec="~2.2.1"/>
plugin name=“cordova-plugin-inappbrowser” spec="~1.5.0"/>
plugin name=“cordova-plugin-whitelist” spec="~1.3.1"/>
plugin name=“cordova-plugin-console” spec="~1.0.5"/>
plugin name=“cordova-plugin-statusbar” spec="~2.2.1"/>
plugin name=“cordova-plugin-device” spec="~1.1.4"/>
plugin name=“ionic-plugin-keyboard” spec="~2.2.1"/>
plugin name=“phonegap-plugin-push” spec="~1.9.4">
variable name=“SENDER_ID” value=“XXXXXXX”/>
/plugin>
plugin name=“cordova-plugin-facebook4” spec="~1.7.4">
variable name=“APP_ID” value=“XXXXX”/>
variable name=“APP_NAME” value=""/>
plugin>

here is the log i see Xcode.

2017-03-24 18:31:41.302531 XXX[423:64847] Apache Cordova native platform version 4.3.1 is starting.
2017-03-24 18:31:41.303962 XXX[423:64847] Multi-tasking -> Device: YES, App: YES
2017-03-24 18:31:41.387918 XXX[423:64847] Using UIWebView
2017-03-24 18:31:41.390554 XXX[423:64847] [CDVTimer][handleopenurl] 0.167966ms
2017-03-24 18:31:41.394319 XXX[423:64847] [CDVTimer][intentandnavigationfilter] 3.591001ms
2017-03-24 18:31:41.394678 XXX[423:64847] [CDVTimer][gesturehandler] 0.172973ms
2017-03-24 18:31:41.416146 XXX[423:64847] [CDVTimer][splashscreen] 21.311998ms
2017-03-24 18:31:41.427672 XXX[423:64847] [CDVTimer][statusbar] 11.240005ms
2017-03-24 18:31:41.429725 XXX[423:64847] [CDVTimer][keyboard] 1.810968ms
2017-03-24 18:31:41.430267 XXX[423:64847] Starting Facebook Connect plugin
2017-03-24 18:31:41.430468 XXX[423:64847] [CDVTimer][facebookconnectplugin] 0.477970ms
2017-03-24 18:31:41.430671 XXX[423:64847] [CDVTimer][TotalPluginStartup] 40.349960ms
2017-03-24 18:31:41.442507 XXX[423:64847] createNotificationChecker
2017-03-24 18:31:41.442621 XXX[423:64847] not coldstart
2017-03-24 18:31:41.458945 XXX[423:64847] active
2017-03-24 18:31:41.459279 XXX[423:64847] PushPlugin skip clear badge
2017-03-24 18:31:41.828249 XXX[423:64847] Resetting plugins due to page load.
2017-03-24 18:31:42.379096 XXX[423:64847] Finished load of: file:///var/containers/Bundle/Application/82B8033B-BC0C-466A-80E3-4D7AA000797E/XXX.app/www/index.html
2017-03-24 18:31:56.605488 GuessThat[423:64847] [MC] System group container for systemgroup.com.apple.configurationprofiles path is /private/var/containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles
2017-03-24 18:31:56.607531 XXX[423:64847] [MC] Reading from public effective user settings.

Quick help is greatly appreciated.

have you probe command like this?:

ionic build ios --prod --release

Yes albertos, no luck :frowning:

Did you define all your components in app.module ? might be an AOT issue

yes i did define all pages and services in app.module,
it works fine with “ionic build android --prod” and even with “ionic build ios”.
“ionic build ios -prod” - doesnt work :frowning:

No clue.

Try starting a blank project and building it with --prod to see if its an Xcode issue.

And then add each plugin one by one to rule those out.

Tried that as well, created test project, added all plugins .
and --prod works fine.

bt not in my project

I have the same problem. How did you solve it?