Description:
app stuck on splash screen Simulator
Steps to Reproduce:
_ionic start myApp sidemenu
ionic cordova platform add ios
ionic serve
ionic cordova build ios_
Now open iOS platform in xCode
Run app in any Simulator
app stuck on splash screen
Output in xCode:
2018-04-19 19:28:36.510849+0530 MyApp[13692:881433] DiskCookieStorage changing policy from 2 to 0, cookie file: file:///Users/mac/Library/Developer/CoreSimulator/Devices/935A1EAE-10A0-477D-A599-16C3EB09E52C/data/Containers/Data/Application/74846CC8-8599-4E7F-BBB3-4A304B9DDA35/Library/Cookies/io.ionic.starter.binarycookies
2018-04-19 19:28:36.877711+0530 MyApp[13692:881433] Apache Cordova native platform version 4.5.3 is starting.
2018-04-19 19:28:36.878159+0530 MyApp[13692:881433] Multi-tasking -> Device: YES, App: YES
2018-04-19 19:28:37.013412+0530 MyApp[13692:881433] Public path found: /Users/mac/Library/Developer/CoreSimulator/Devices/935A1EAE-10A0-477D-A599-16C3EB09E52C/data/Containers/Bundle/Application/CD392307-EB87-47ED-9239-7CD0340B1BEB/MyApp.app/www
[ERROR] Failed binding IPv4 listening socket: Address already in use (48)
2018-04-19 19:28:37.020200+0530 MyApp[13692:881433] CDVWKWebViewEngine: trying to inject XHR polyfill
2018-04-19 19:28:37.192991+0530 MyApp[13692:881433] [MC] Lazy loading NSBundle MobileCoreServices.framework
2018-04-19 19:28:37.203608+0530 MyApp[13692:881433] [MC] Loaded MobileCoreServices.framework
2018-04-19 19:28:39.021606+0530 MyApp[13692:881433] CDVWKWebViewEngine will reload WKWebView if required on resume
2018-04-19 19:28:39.021903+0530 MyApp[13692:881433] Using Ionic WKWebView
2018-04-19 19:28:39.023059+0530 MyApp[13692:881433] [CDVTimer][console] 0.164032ms
2018-04-19 19:28:39.023359+0530 MyApp[13692:881433] [CDVTimer][handleopenurl] 0.080109ms
2018-04-19 19:28:39.033979+0530 MyApp[13692:881433] [CDVTimer][intentandnavigationfilter] 10.529041ms
2018-04-19 19:28:39.034337+0530 MyApp[13692:881433] [CDVTimer][gesturehandler] 0.102043ms
2018-04-19 19:28:39.034671+0530 MyApp[13692:881433] CDVIonicKeyboard: resize mode 1
2018-04-19 19:28:39.036030+0530 MyApp[13692:881433] [CDVTimer][keyboard] 1.368999ms
2018-04-19 19:28:39.071176+0530 MyApp[13692:881433] [CDVTimer][splashscreen] 34.900069ms
2018-04-19 19:28:39.071447+0530 MyApp[13692:881433] [CDVTimer][TotalPluginStartup] 48.637033ms
2018-04-19 19:29:41.270255+0530 MyApp[13692:881433] Failed to load webpage with error: The request timed out.
My ionic info:
cli packages: (/usr/local/lib/node_modules)
@ionic/cli-utils : 1.19.1
ionic (Ionic CLI) : 3.19.1
global packages:
cordova (Cordova CLI) : 8.0.0
local packages:
@ionic/app-scripts : 3.1.9
Cordova Platforms : ios 4.5.4
Ionic Framework : ionic-angular 3.9.2
System:
Node : v8.11.1
npm : 5.6.0
OS : macOS High Sierra
Xcode : Xcode 9.2 Build version 9C40b
Environment Variables:
ANDROID_HOME : not set
Misc:
backend : pro
Other Information:
I can reproduce same issue multiple time.
same Issue any resolution? Ionic cordova run ios works however to build in simulator but wont allow use in xcode to run simulator or to build on a phone
I tried _ionic cordova build ios_ and successfully run in simulator with downgrade node version to
Node : v6.11.3
But issue is same with
Node : v8.11.1
Try to reboot your mac
After adding iOS platform, running the following fixed this issues for me:
ionic cordova prepare ios
There is not a permanent solution for this. I fixed this by hit and try of diff-2 node versions.