"ARConfiguration() – init() is unavailable" error in Xcode 9 Beta 5

905 views Asked by At

On updating my existing AR application code (written using ARKit and SceneKit), I am getting below error while trying to initialize ARConfiguration:

// ARConfiguration() - init() is unavailable.

How to resolve this?

1

There are 1 answers

0
OOPer On BEST ANSWER

Apple's documentation of ARConfiguration says:

Class

ARConfiguration

The abstract base class for AR session configurations.

Seems Apple wants to make this an abstract class, so init() has made unavailable.

Can't you use any of its concrete subclasses, ARWorldTrackingConfiguration or AROrientationTrackingConfiguration?