White screen on IOS startup

Asked

Viewed 385 times

0

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

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

Only the build for IOS is giving problem.

The problem

After the build is tested on a real device, the app enters the splashscreen and exits, entering a white screen that does not come out at all.

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

Information

In the Xcode console the only thing I see is all startup 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!

1 answer

0

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

https://ionicframework.com/docs/wkwebview/

If this is the problem, the correction guidance is as follows::

  • Close the Xcode
  • Remove platforms and plugins

    rm -rf platforms

    rm -rf plugins

  • Include the platform again

    ionic cordova platform add ios

  • Make sure that 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

Browser other questions tagged

You are not signed in. Login or sign up in order to post.