App closing immediately after opening in Simulator

I have an unbounded scene which is showing some odd behaviour.

  • Sometimes the app will open from Xcode, show content briefly, then close (Xcode output below)
  • Sometimes clicking on the app icon in the sim will open it OK, sometimes it immediately closes.
  • Sometimes it’s fine

It looks like it’s “fixable” by going to device > restart or device > erase all content and settings , then running from Xcode.

Is this a known issue?

Scene became active: <UIWindowScene: 0x101e05890; role: UISceneSessionRoleImmersiveSpaceApplication; persistentIdentifier: com.project.name:SFBSystemService-955D64A8-51D8-4857-B761-9F0E8E4D69C8; activationState: UISceneActivationStateForegroundActive>

Window added: uuid 74D3A2D7-E63A-4662-9EC1-E968B054C9B2 as Unbounded

Matching windows and volumes -- 0 orphan volumes, 1 free windows, 1 total windows

   ... requesting dismiss of unused window: uuid 74D3A2D7-E63A-4662-9EC1-E968B054C9B2 Unbounded

Scene disconnected: <UIWindowScene: 0x101e05890; role: UISceneSessionRoleImmersiveSpaceApplication; persistentIdentifier: com.project.name:SFBSystemService-955D64A8-51D8-4857-B761-9F0E8E4D69C8; activationState: UISceneActivationStateUnattached>

Window removed: uuid 74D3A2D7-E63A-4662-9EC1-E968B054C9B2

Double-check that you don’t have the splash screen enabled in player settings; this causes exactly this issue.

1 Like

I’ve had the splash screen issue before, but it’s not the case here.

To add to the above, sometimes the content is shown, but it’s semi-transparent, with the Home icons overlaid. Clicking the app icon sometimes loads the content correctly, other times it just closes it.

I swear this should be on a pinned or sticky post somewhere

Sadly it’s not the splash screen issue

Anyone have any update on the issue? We have a similar case that the app sometimes run normally, while more often, run on the background with no visual but you can hear the audio playing and the home screen menu is shown. We definitely have the option of splash screen set to off.

1 Like

I noticed that having a “Virtual Reality Splash Image” set will cause this issue, even when Show Splash Screen is set to off.

Your suggestion works, thank you.