"Initializing hosting entity without a context"?

I am getting the error "Initializing hosting entity without a context" in the console when I build and run my game in XCode 16.0 beta, targeting Vision Pro OS 2.0 (22N5252n).

Not sure where the error is originating.

Hello @patchedreality,

Are you able to provide more details about your game to help debug the log? Does it use RealityKit or a different framework/technology?

Thank you,

If it can help, I have got the same issue using RealityKit and creating attachments with a foreach loop in response to changes in my viewModel.

I got same error at same situation of ZeDenis.
In Diorama Sample, this error is occurred too.

Getting this error under the same circumstances as others on this thread, on 15.4 as well as 16 beta

Confirming it is still occurring in Diorama example, and also in my own app under similar implementations: RealityKit, and Attachments.

If I comment the attachment code (ie: I don't add any attachment), the issue does not appear.

Created FB15291821.

"Initializing hosting entity without a context"?
 
 
Q