Fatal error – Face tracking is not supported on this device

997 Views Asked by At

I want to enable ARFaceTrackingConfiguration on my app but i am having problem with it. I am using iPhone 7 which has Apple A10 Fusion-64 bit chip but still getting that fatal error. Can you help me with this?

I enabled permissions on the info.plist and i am cheking .isSupported in ARFaceTrackingCOnfiguration

let configuration = ARFaceTrackingConfiguration()
sceneView.session.run(configuration)

guard ARFaceTrackingConfiguration.isSupported else {
    fatalError("Face tracking is not supported on this device")
}

is it because the front camera of Iphone 7 is not TrueDepth camera?

1

There are 1 best solutions below

0
On

You can't run ARFaceTrackingConfiguration without TrueDepth camera. Check the documentation for more info

Face tracking is available only on iOS devices with a front-facing TrueDepth camera

You can also check if the device can run this configuration by calling ARFaceTrackingConfiguration.isSupported