I updated to 15.4.1 the system version of iPadPro12.9 4th (Model Number: MXAU2J/A) . And we have built & executed the following projects.
However, there is an exception threw "lidarDeviceUnavailable" and an execution error. (There is place where exceptions throw.) (As a supplement, depth measurement using ARKIT can be performed.)
// Look up the LiDAR camera.
guard let device = AVCaptureDevice.default(.builtInLiDARDepthCamera, for: .video, position: .back) else {
throw ConfigurationError.lidarDeviceUnavailable
}
I also own iPhone13Pro(iOS 15.4.1), and I was able to execute sample code without any problems.
Is the cause of this problem for hardware constraints? Or is it a bug?
In the project I join, iPad Pro 11-inch (2nd Generation) is developed as a target terminal. Can I run a sample code with iPad Pro 11-inch (2nd Generation)?
I was waiting for the depth measurement by AVFoundation using LIDAR sensors. The reason is that I can measure depth with ARKIT, but it was not possible to change the camera exposure.
Thanks.