atal error: Your app was given a scene with session role UISceneSessionRole

When trying to run my app with .windowStyle(.volumetric) for vision OS, this error is returning: Fatal error: Your app was given a scene with session role UISceneSessionRole(_rawValue: UIWindowSceneSessionRoleApplication) but no scenes declared in your App body match this scroll.

Hi, Just came across this as well and got it fixed by going to Project > Targets (select yours) > Info teb > Application Scene Manifest > Immerssive Space Application Session Role (which in my case was instead set to Window Application Session Role)

See below screenshot

I can confirm that the steps produced by sikaar do work.

atal error: Your app was given a scene with session role UISceneSessionRole
 
 
Q