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

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.

About this issue

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

Most upvoted comments

@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": ["*"]
	}

running through the same problem rn