I created an ARKit project using the beta version of Xcode 9, which I was able to run on my real device without any problems.
Yesterday I upgraded to Xcode 9 GM and, without touching anything, Xcode shows several errors saying that it does not know ARSessionConfiguration ie:
Using the undeclared type "ARSessionConfiguration"
and
Using the undeclared type "ARWorldTrackingSessionConfiguration"
... for this code:
let session = ARSession() var sessionConfig: ARSessionConfiguration = ARWorldTrackingSessionConfiguration()
I have imported ARKit and am using ARSCNViewDelegate in my ViewController.
When I open a project from the beta version of Xcode, it shows no errors, and I can run the application on my phone again.
Any idea how I can fix this?
source share