What happened to ARView.session in Xcode 11.4?

Before the update ARView.session seemed to be accessible, but now after the update it is not.


The documentation says it should be there


https://developer.apple.com/documentation/realitykit/arview


So I very confused why I am getting an 'Use of unresolved identifier 'session'', since the update.


Can anyone tell me how to fix?


Stan

Accepted Reply

Change your run destination to an actual/generic device. This kind of build error suggests you're targetting Simulator, and RealityKit doesn't support the Simulator.

Replies

Change your run destination to an actual/generic device. This kind of build error suggests you're targetting Simulator, and RealityKit doesn't support the Simulator.

Thanks Bobjt!


That was it!


Much apprecaited!


Stan


Change your run destination to an actual/generic device. This kind of build error suggests you're targetting Simulator, and RealityKit doesn't support the Simulator.

Hi, the app I'm building has an optional experience created with Reality Composer. It is not the main function of the app - the app has other core functionality. Is there a way to continue building on the simulator to test my other features?