White screen on IOS startup

0

I'm developing an app with Ionic in version 3 but I'm having a problem with the build for IOS, just for IOS.

For several days I researched and I did not find a solution to my problem, I managed to compile the last two versions without problem, but now that I need to release another version, it's not even going to PAUU !!

  

Only the build for IOS is giving trouble.

The problem

After the test build on a real device, the application enters the splash screen and exits, entering a white screen that does not come out at all.

This occurs only in the build with the --prod flag. When I run in debug mode it works perfectly, with livereload and everything else.

Information

In the XCode console the only thing I see is all initialization and when the app is locked on the white screen I see TIC Read Status [10:0x0]: 1:57 and TIC Read Status [11:0x0]: 1:57

Any attempt to help is welcome. Thank you in advance!

    
asked by anonymous 20.07.2018 / 21:36

1 answer

0

On the Ionic page, there is an explanation that states that one of the causes might be incorrect installation of the platform.

link

If the problem is this, the orientation for correction is as follows:

  • Close Xcode
  • Remove platforms and plugins

    rm -rf platforms

    rm -rf plugins

  • Add the platform again

    ionic cordova platform add ios

  • Make sure navigation to localhost is allowed:

    <allow-navigation href="http://localhost:8080/*"/>

  • Make sure WKWebView is the default:

    <feature name="CDVWKWebViewEngine"> <param name="ios-package" value="CDVWKWebViewEngine" /> </feature> <preference name="CordovaWebViewEngine" value="CDVWKWebViewEngine" />

  • Build it again

    ionic cordova build ios

23.07.2018 / 19:30