question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

bug: Stuck on a blank screen when running iOS app via XCode

See original GitHub issue

Bug Report

Capacitor Version

💊 Capacitor Doctor 💊

Latest Dependencies:

@capacitor/cli: 3.4.1 @capacitor/core: 3.4.1 @capacitor/android: 3.4.1 @capacitor/ios: 3.4.1

Installed Dependencies:

@capacitor/android: not installed @capacitor/cli: 3.4.1 @capacitor/core: 3.4.1 @capacitor/ios: 3.4.1

[success] iOS looking great! 👌

Platform(s)

iOS

Current Behavior

The app is stuck on a blank screen for almost 2 minutes if I run it via XCode.

Expected Behavior

The app should load normally via XCode so that XCode debugging utilities can be used. Waiting each deployment for almost 2 minutes is not a choice.

Code Reproduction

  1. ionic start
  • Use the app creation wizard: No
  • Framework: Vue
  • Starter template: tabs
  1. ionic capacitor add ios
  2. ionic capacitor sync ios
  3. ionic capacitor open ios
  4. Run the app in XCode

On the contrary, if I just run ionic capacitor run ios, the app deploys normally without any issues.

Other Technical Details

npm --version output: 8.4.1

node --version output: v17.5.0

pod --version output (iOS issues only): 1.11.2

Additional Context

macOS: 12.2.1 XCode: 13.2.1 iOS: 15.3.1

Thank you for helping out.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:3
  • Comments:16 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
koti-muppavarapucommented, May 25, 2022

@cappe are you sure your compiled files are generated to dist instead of www ?

To use live reload (ionic cap run ios -l --external) you don’t need to set hostname, you should rather set url property of the server object.

For example:

"server": {
		"url": "http://localhost:8100",
		"cleartext": true,
		"allowNavigation": ["*"]
	}
1reaction
ogoreicommented, Aug 29, 2022

running through the same problem rn

Read more comments on GitHub >

github_iconTop Results From Across the Web

app has black screen on device. wo… - Apple Developer
app has black screen on device. works fine on simulator. no error messages. ... problem - app shows launch screen and then shows...
Read more >
Launch iOS simulator from Xcode and getting a black screen ...
The solution is to press cmd+shift+, (command, shift and then comma ",").. that loads some options for release or debugging. Change the debugger...
Read more >
iOS Random black screen when loading the app - Edureka
The app is opening on a tableview loading remote data. The bug is quite random so I have no clue how to replicate...
Read more >
3 Easy Solutions to Fix iOS 16/15 Stuck on Black Screen
Way 1. Force Restart iPhone/iPad Running iOS 16/15 · Press and hold still the Volume Down and the power button (located at side...
Read more >
Bug of the Month: Blank Web Views - Embrace Blog and Events
You might have experienced this in your own applications and can probably guess why it occurred. Maybe the JavaScript didn't load or the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found