Possibly not related to ionic, but after a couple of installs through “ionic run ios” on my ipad, my app suddenly started hanging at the splash screen. I’ve ran the iphone configuration utility but nothing useful was showing up there in the console.
The app works in the browser and doesn’t trigger any errors in the console. I have no idea where to look now, any idea what can be the cause?
Are you going to an actual device or an emulator? Also, is the app already running? AFAIK, ionic run ios is built on top of cordova run ios, which needs ios-sim. Ios-sim has never really worked too well, and has always been problematic.
Im having the same problem. I can run the app fine when simulator or on a connected device. Then I generated an ipa for doing a closed group test and installing the ipa gives me a blank screen (initially I just saw the Cordova splash screen but subsequent installs/runs now just give me a blank screen).
I’ve had a couple of similar experiences. I usually build and test my apps on iOS using XCode, and rely on the console there for error messages, but I was occasionally getting to the stage where my app would not start properly, but I wouldn’t see anything in XCode.
I found that if I turned on Web Inspector on my device, and then used Safari to debug my running app, the Safari developer console would give me a lot more debug information than XCode, and this has helped me to debug things like variables being null when a value was expected etc.
I normally dislike using the Safari developer tools as you cannot actually start the tool until the app is ALREADY running on the device, thus reducing the effectiveness of debugging startup code, but I learned a great tip on this forum, which is to enter the command
window.location.reload()
in the Safari developer console to restart your app so you can do start up debugging… Hope this helps.
I’m also having this same problem on my iPhone running 8.1. I click run, it seems to do the trick, opens the app on the iPhone but then it just hangs on the splash screen.
I did have some plugin warnings so I removed the plugins but it still just freezes.
@mhartington I do have HTTP requests, what impact does that have?
Hey @mhartington - I actually realised when looking at Xcode that I’m actually getting a strange error thats stopping the app from opening: Xcode error