White screen on IOS startup
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, being able to compile the last two versions without problem, but now that I am needing to release another version, it is not going even to PAUU!!
Only build for IOS is giving problem.
A problem
After build testing on a real device, the application enters the splashscreen and exits, entering a white screen that does not exit at all.
This occurs only in the build with the --prod
flag. When I squeak in mode debug works perfectly, with livereload and everything else.
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 at help will be welcome. Thank you since now!
1 answers
On the Ionic page, there is an explanation that informs 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 Xcode
-
Remove platforms and plugins
rm -rf platforms
rm -rf plugins
-
Include the platform again
ionic cordova platform add ios
-
Make sure that the navigation to localhost is allowed:
<allow-navigation href="http://localhost:8080/*"/>
-
Make sure the WKWebView is the default:
<feature name="CDVWKWebViewEngine"> <param name="ios-package" value="CDVWKWebViewEngine" /> </feature> <preference name="CordovaWebViewEngine" value="CDVWKWebViewEngine" />
-
Build again
ionic cordova build ios