# Ionic 6 --prod build gives white screen in ios versions 14.4 and lower

**URL:** <https://forum.ionicframework.com/t/ionic-6-prod-build-gives-white-screen-in-ios-versions-14-4-and-lower/228122>\
**Category:** Ionic Angular\
**Created:** [October 29, 2022, 7:06pm UTC](https://forum.ionicframework.com/t/ionic-6-prod-build-gives-white-screen-in-ios-versions-14-4-and-lower/228122 "2022-10-29T19:06:54Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Blanketsniffer](https://avatars.discourse-cdn.com/v4/letter/b/aeb1de/32.png) [@Blanketsniffer](https://forum.ionicframework.com/u/Blanketsniffer)\
**Post date:** [October 29, 2022, 7:06pm UTC](https://forum.ionicframework.com/t/ionic-6-prod-build-gives-white-screen-in-ios-versions-14-4-and-lower/228122/1 "2022-10-29T19:06:54Z")

</div>

Current Behavior

ionic-angular app with production build (–prod) causes “ionic white screen of death” in ios versions 13.5 and 14.4 (both in simulators and real device) but not sure about the real span of version for this behaviour.  
app works and responds in the background but nothing on screen

Expected Behavior

ionic-angular production build should work without problem in these versions of ios

Steps to Reproduce

create blank ionic-angular app with either capacitor or cordova  
capacitor:  
ionic build --prod  
npx cap sync

cordova:  
ionic cordova build ios --prod

when running the app no problem in ios 16.0 but white screen on mentioned older versions of ios

Ionic Info

> Ionic:
> 
> Ionic CLI : 6.20.3 (/Users/emreakkoc/.nvm/versions/node/v18.12.0/lib/node\_modules/@ionic/cli)  
> Ionic Framework : @ionic/angular 6.3.3  
> @angular-devkit/build-angular : 14.2.7  
> @angular-devkit/schematics : 14.2.7  
> @angular/cli : 14.2.7  
> @ionic/angular-toolkit : 6.1.0
> 
> Cordova:
> 
> Cordova CLI : 11.0.0  
> Cordova Platforms : ios 6.0.0  
> Cordova Plugins : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 5.0.0, (and 3 other plugins)
> 
> Utility:
> 
> cordova-res : 0.15.4  
> native-run : 1.7.1
> 
> System:
> 
> ios-deploy : 1.11.4  
> ios-sim : 8.0.2  
> NodeJS : v18.12.0 (/Users/emreakkoc/.nvm/versions/node/v18.12.0/bin/node)  
> npm : 8.19.2  
> OS : macOS Monterey  
> Xcode : Xcode 14.0.1 Build version 14A400

anyone has a temporary fix ?

---

<div class="post-metadata">

**Author:** ![Blanketsniffer](https://avatars.discourse-cdn.com/v4/letter/b/aeb1de/32.png) [@Blanketsniffer](https://forum.ionicframework.com/u/Blanketsniffer)\
**Post date:** [October 30, 2022, 10:59am UTC](https://forum.ionicframework.com/t/ionic-6-prod-build-gives-white-screen-in-ios-versions-14-4-and-lower/228122/2 "2022-10-30T10:59:46Z")

</div>

–prod is deprecated since angular 13 will try with current way

---

<div class="post-metadata">

**Author:** ![Blanketsniffer](https://avatars.discourse-cdn.com/v4/letter/b/aeb1de/32.png) [@Blanketsniffer](https://forum.ionicframework.com/u/Blanketsniffer)\
**Post date:** [October 30, 2022, 11:19am UTC](https://forum.ionicframework.com/t/ionic-6-prod-build-gives-white-screen-in-ios-versions-14-4-and-lower/228122/3 "2022-10-30T11:19:37Z")

</div>

–prod flag is deprecated since angular 13 but  
`ionic cordova build ios --configuration production`  
also did not help and causes the same behaviour

---

<div class="post-metadata">

**Author:** ![ciccilleju](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/ciccilleju/32/135142_2.png) [@ciccilleju](https://forum.ionicframework.com/u/ciccilleju)\
**Post date:** [October 30, 2022, 11:54am UTC](https://forum.ionicframework.com/t/ionic-6-prod-build-gives-white-screen-in-ios-versions-14-4-and-lower/228122/4 "2022-10-30T11:54:13Z")

</div>

i think there is a similar issue based on android 30 and below.  
If you try to inspect your code with safari technology preview and disable position absolute and display flex in your .ion-page class, something will appear.  
sooo weird.  
check here: [https://forum.ionicframework.com/t/ionic-6-default-project-white-screen-on-android-30-or-below-when-using-prod/228087/8](https://forum.ionicframework.com/t/ionic-6-default-project-white-screen-on-android-30-or-below-when-using-prod/228087/8)

i think we need the help of the ionic staff

 ![image](https://global.discourse-cdn.com/ionicframework/original/3X/c/4/c479826355dbb2cfe3032ad26c1e3ab991644ae5.jpeg)

 ![image](https://global.discourse-cdn.com/ionicframework/original/3X/a/d/ada95e0ee7e10ebb7b3d9aa8f6e91ecd94c3e4a0.jpeg)

as temporary fix, if you add this to your ion-page class:

height: 100%;  
width: 100%;

it works again

---

<div class="post-metadata">

**Author:** ![Blanketsniffer](https://avatars.discourse-cdn.com/v4/letter/b/aeb1de/32.png) [@Blanketsniffer](https://forum.ionicframework.com/u/Blanketsniffer)\
**Post date:** [October 30, 2022, 7:16pm UTC](https://forum.ionicframework.com/t/ionic-6-prod-build-gives-white-screen-in-ios-versions-14-4-and-lower/228122/5 "2022-10-30T19:16:19Z")

</div>

this fixed the problem for now, thank you much.  
I created an issue let’s see how it will progress

> <https://github.com/ionic-team/ionic-framework/issues/26190>
>
> \### Prerequisites
> 
> \- \[X\] I have read the \[Contributing Guidelines\](https://git…hub.com/ionic-team/ionic-framework/blob/main/.github/CONTRIBUTING.md#creating-an-issue).
> \- \[X\] I agree to follow the \[Code of Conduct\](https://ionicframework.com/code-of-conduct).
> \- \[X\] I have searched for \[existing issues\](https://github.com/ionic-team/ionic-framework/issues) that already report this problem, without success.
> 
> \### Ionic Framework Version
> 
> \- \[\] v4.x
> \- \[\] v5.x
> \- \[X\] v6.x
> \- \[\] Nightly
> 
> \### Current Behavior
> 
> ionic-angular app with production build (--prod) causes "ionic white screen of death" in ios versions 13.5 and 14.4 (both in simulators and real device) but not sure about the real span of version for this behaviour.
> app works and responds in the background but nothing on screen
> 
> \### Expected Behavior
> 
> ionic-angular production build should work without problem in these versions of ios
> 
> \### Steps to Reproduce
> 
> create blank ionic-angular app with either capacitor or cordova
> capacitor:
> ionic build --prod
> npx cap sync 
> 
> cordova:
> ionic cordova build ios --prod
> 
> when running the app no problem in ios 16.0 but white screen on mentioned older versions of ios
> 
> \### Code Reproduction URL
> 
> \_No response\_
> 
> \### Ionic Info
> 
> Ionic:
> 
> Ionic CLI : 6.20.3 (/Users/emreakkoc/.nvm/versions/node/v16.10.0/lib/node\_modules/@ionic/cli)
> Ionic Framework : @ionic/angular 6.3.3
> @angular-devkit/build-angular : 14.2.7
> @angular-devkit/schematics : 14.2.7
> @angular/cli : 14.2.7
> @ionic/angular-toolkit : 6.1.0
> 
> Cordova:
> 
> Cordova CLI : 11.0.0
> Cordova Platforms : ios 6.0.0
> Cordova Plugins : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 5.0.0, (and 3 other plugins)
> 
> Utility:
> 
> cordova-res : 0.15.4
> native-run : 1.7.1
> 
> System:
> 
> ios-deploy : 1.11.4
> ios-sim : 8.0.2
> NodeJS : v16.10.0 (/Users/emreakkoc/.nvm/versions/node/v16.10.0/bin/node)
> npm : 8.19.2
> OS : macOS Monterey
> Xcode : Xcode 14.0.1 Build version 14A400
> 
> 
> 
> \### Additional Information
> \--prod flag is deprecated since angular 13 but 
> \`ionic cordova build ios --configuration production\`
> also did not help and causes the same behaviour

---

<div class="post-metadata">

**Author:** ![ciccilleju](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/ciccilleju/32/135142_2.png) [@ciccilleju](https://forum.ionicframework.com/u/ciccilleju)\
**Post date:** [October 31, 2022, 3:35pm UTC](https://forum.ionicframework.com/t/ionic-6-prod-build-gives-white-screen-in-ios-versions-14-4-and-lower/228122/6 "2022-10-31T15:35:55Z")

</div>

> [@Ionic 6 default project white screen on Android 30 or below when using --prod](https://forum.ionicframework.com/t/ionic-6-default-project-white-screen-on-android-30-or-below-when-using-prod/228087/11):
>
> The problem with this css is that when using a device like iphone 13, iphone 14 etc with a notch, it changes the behavior of safe-area too, so maybe it will fix everything on android but gives a new problem on ios. we need @ldebeasi ! slight_smile

there is a solution:

```auto
Chrome >=60
Firefox >=63
Edge >=79
Safari >=13
iOS >=13
not dead
not IE 9-11 # For IE 9-11 support, remove 'not'.

```

fix your browserslistsrc like this

---

<div class="post-metadata">

**Author:** ![Blanketsniffer](https://avatars.discourse-cdn.com/v4/letter/b/aeb1de/32.png) [@Blanketsniffer](https://forum.ionicframework.com/u/Blanketsniffer)\
**Post date:** [October 31, 2022, 10:59pm UTC](https://forum.ionicframework.com/t/ionic-6-prod-build-gives-white-screen-in-ios-versions-14-4-and-lower/228122/7 "2022-10-31T22:59:56Z")

</div>

thank you so much again
