Posts

Post marked as solved
5 Replies
I received an answer from Apple after submitting a feedback ticket about this:This issue behaves as intended.We do document that we are not listing devices in Catalyst mode.SeeImportant iPad apps running in macOS cannot use the AVFoundation Capture classes. These apps should instead use UIImagePickerController for photo and video capture.Please close your feedback report, or let us know if this is still an issue for you.https://developer.apple.com/documentation/avfoundation/cameras_and_media_captureSo unless they update it in the future it's not possible to access the camera on a Mac from a Catalyst app.
Post not yet marked as solved
3 Replies
I received an answer from Apple after submitting a feedback ticket: This issue behaves as intended. We do document that we are not listing devices in Catalyst mode. See Important iPad apps running in macOS cannot use the AVFoundation Capture classes. These apps should instead use UIImagePickerController for photo and video capture. Please close your feedback report, or let us know if this is still an issue for you.https://developer.apple.com/documentation/avfoundation/cameras_and_media_capture So unless they update it in the future it's not possible to access the camera on a Mac from a Catalyst app.
Post not yet marked as solved
3 Replies
I'm having the same issue. I've even tried including all the possible devices but no luck: let discoverySession = AVCaptureDevice.DiscoverySession(deviceTypes: [.builtInMicrophone, .builtInWideAngleCamera, .builtInTelephotoCamera, .builtInUltraWideCamera, .builtInDualCamera, .builtInDualWideCamera, .builtInTripleCamera, .builtInTrueDepthCamera], mediaType: .video, position: .unspecified) print(discoverySession.devices)Always get 0 devices.