You're asking two distinct frameworks (ARSession and AVFoundation) to access the camera at the same time. Look at using the ARSession.currentFrame.capturedImage property for the RGB data.
Topic:
Spatial Computing
SubTopic:
ARKit
Tags: