# Warning: deprecated method on MAC OS

**URL:** <https://forum.opencv.org/t/warning-deprecated-method-on-mac-os/16504>\
**Category:** Python\
**Tags:** apple, videoio\
**Created:** [February 19, 2024, 3:13pm UTC](https://forum.opencv.org/t/warning-deprecated-method-on-mac-os/16504 "2024-02-19T15:13:33Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Judson](https://avatars.discourse-cdn.com/v4/letter/j/eb9ed0/32.png) [@Judson](https://forum.opencv.org/u/Judson)\
**Post date:** [February 19, 2024, 3:13pm UTC](https://forum.opencv.org/t/warning-deprecated-method-on-mac-os/16504/1 "2024-02-19T15:13:33Z")

</div>

I am using openCV-python version 4.9.0 on a MACOS M1 chip Sonoma 14.1.0 version with VSCode.

I receive the following message. ''WARNING: AVCaptureDeviceTypeExternal is deprecated for Continuity Cameras. Please use AVCaptureDeviceTypeContinuityCamera and add NSCameraUseContinuityCameraDeviceType to your Info.plist". For now, my programs are working but may not be soon. I have researched the .plist which appear require Xcode to modify. I do see that there are specific .Plist editors. I’m encountering a lot of mention. About plists but really don’t understand how to access them and make the recommended changes. I have the module Xcode-select installed on my Mac but not either Xcode via the terminal in the PATH nor have I downloaded the Xcode app. My head is spinning (not spewing green luminescent vomit- yet).

> **[Information Property List | Apple Developer Documentation](https://developer.apple.com/documentation/bundleresources/information_property_list)**
>
> A resource containing key-value pairs that identify and configure a bundle.

This is apple’s information on ‘information property list’

> **[Supporting Continuity Camera in your macOS app | Apple Developer Documentation](https://developer.apple.com/documentation/avfoundation/capture_setup/supporting_continuity_camera_in_your_macos_app)**
>
> Enable high-quality photo and video capture by using an iPhone camera as an external capture device.

Found a number of mentions of plists and modifying them but I can definitely benefit from an experienced hand at this.I’m afraid of breaking something that currently is working.

‘sarunw / posts’ has a post with the following ‘what-is-info-plist’ :

**What is Info.plist in Xcode**

**What is Info.plist**

The **App’s Information Property List** or **Info.plist** is a file that contains **information that describes an app**.

It contains **basic information** like:

- App name
- App version
- App build number
- Custom fonts

And also contain **platform-specific information** like:

- Supported orientation for iPhone/iPad
- Launch screen destination
- Privacy reason for a hardware usage

**To open the Info tab.**

1. Select the project root directory from the Project Navigator.
2. Select your app target.
3. Then, select “ **Info** ” tab. ++I don’t understand how to access the folder where the info.plist for Continuity Camera is and, if I did, how to alter it. Hoping you can help.

---

<div class="post-metadata">

**Author:** ![berak](https://avatars.discourse-cdn.com/v4/letter/b/85f322/32.png) [@berak](https://forum.opencv.org/u/berak)\
**Post date:** [February 20, 2024, 8:11am UTC](https://forum.opencv.org/t/warning-deprecated-method-on-mac-os/16504/2 "2024-02-20T08:11:50Z")

</div>

no thing apple here, so just some “common sense”:

- this is just a c++ warning. the used api will be deprecated _in the future_.
- there is **nothing** you can do about it _from python_
- how did you install this ?
- please _show_, how you invoke the VideoCapture (code!)  
which opencv backend is used ? (so we can look into the resp. c++ code)

---

<div class="post-metadata">

**Author:** ![crackwitz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/crackwitz/32/14_2.png) [@crackwitz](https://forum.opencv.org/u/crackwitz)\
**Post date:** [February 20, 2024, 8:38am UTC](https://forum.opencv.org/t/warning-deprecated-method-on-mac-os/16504/3 "2024-02-20T08:38:45Z")

</div>

> [@Judson](#):
>
> WARNING: AVCaptureDeviceTypeExternal is deprecated for Continuity Cameras. Please use AVCaptureDeviceTypeContinuityCamera and add NSCameraUseContinuityCameraDeviceType to your Info.plist

Another discussion involving this (on the wrong repo):

> <https://github.com/opencv/opencv-python/issues/916>
>
> WARNING: AVCaptureDeviceTypeExternal is deprecated for Continuity Cameras. Pleas…e use AVCaptureDeviceTypeContinuityCamera and add NSCameraUseContinuityCameraDeviceType to your Info.plist.
> 
> Once i updated my mac os version, continuty camera stopped working. I have tried looking for an info.plist in my cv2 folder but no luck. If the VideoCapture function is being handed off to another framework for cross platform use, that could be where the info.plist is to change this attribute to what Apple now recommends using as the current one opencv is using is deprecated.
> 
> https://developer.apple.com/documentation/avfoundation/avcapturedevice/devicetype
> 
> This should be a simple fix depending on if the video capture is not a dependency but hopefully it can be fixed soon as many others have observed this issue as well.
> 
> https://www.reddit.com/r/opencv/comments/17glzkc/questionopencvpython\_videocapture\_seems\_not/

---

<div class="post-metadata">

**Author:** ![JBelmont72](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/jbelmont72/32/9725_2.png) [@JBelmont72](https://forum.opencv.org/u/JBelmont72)\
**Post date:** [February 21, 2024, 1:19am UTC](https://forum.opencv.org/t/warning-deprecated-method-on-mac-os/16504/4 "2024-02-21T01:19:46Z")

</div>

Looks like the answer for me is to not use Sonoma.

> **[If you can't use your camera or video output device after updating to macOS...](https://support.apple.com/en-us/108387)**
>
> Starting in macOS Sonoma 14.1, cameras and video output devices that don't use modern system extensions won't be available to use unless you restore the legacy settings.

**If you can’t use your camera or video output device after updating to macOS Sonoma 14.1**

Starting in macOS Sonoma 14.1, cameras and video output devices that don’t use modern system extensions won’t be available to use unless you restore the legacy settings.

Starting in macOS Sonoma 14.1, only cameras and video output devices that use modern system extensions are supported on macOS. This modern software provides more secure and privacy conscious experience, including support for the camera privacy indicator — a green dot icon that displays in the menu bar while your camera is in use.

If your camera or video output device still uses older software, it won’t appear as an option to select and use in apps after you update to macOS Sonoma 14.1.

Apple has been working with video device makers to update their support software to the modern camera extension replacement, which became available in macOS Monterey 12.3. However, some video device makers haven’t yet updated — so their cameras or video output devices still rely on software that is no longer supported.

---

<div class="post-metadata">

**Author:** ![JBelmont72](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/jbelmont72/32/9725_2.png) [@JBelmont72](https://forum.opencv.org/u/JBelmont72)\
**Post date:** [February 21, 2024, 1:21am UTC](https://forum.opencv.org/t/warning-deprecated-method-on-mac-os/16504/5 "2024-02-21T01:21:19Z")

</div>

Thank you, no one there had any suggestions on how to access the Info.plist file in question. When I go to Finder and search Info.plist on the computer hard drive, I have about a dozen hits. When I open them, they are clearly not the one one desired.Looks like the answer for me is to not use Sonoma.

> **[If you can't use your camera or video output device after updating to macOS...](https://support.apple.com/en-us/108387)**
>
> Starting in macOS Sonoma 14.1, cameras and video output devices that don't use modern system extensions won't be available to use unless you restore the legacy settings.

**If you can’t use your camera or video output device after updating to macOS Sonoma 14.1**

'Starting in macOS Sonoma 14.1, cameras and video output devices that don’t use modern system extensions won’t be available to use unless you restore the legacy settings.

Starting in macOS Sonoma 14.1, only cameras and video output devices that use modern system extensions are supported on macOS. This modern software provides more secure and privacy conscious experience, including support for the camera privacy indicator — a green dot icon that displays in the menu bar while your camera is in use.

If your camera or video output device still uses older software, it won’t appear as an option to select and use in apps after you update to macOS Sonoma 14.1.

Apple has been working with video device makers to update their support software to the modern camera extension replacement, which became available in macOS Monterey 12.3. However, some video device makers haven’t yet updated — so their cameras or video output devices still rely on software that is no longer supported.’

---

<div class="post-metadata">

**Author:** ![cwolff09](https://avatars.discourse-cdn.com/v4/letter/c/e8c25b/32.png) [@cwolff09](https://forum.opencv.org/u/cwolff09)\
**Post date:** [October 14, 2024, 6:46pm UTC](https://forum.opencv.org/t/warning-deprecated-method-on-mac-os/16504/6 "2024-10-14T18:46:47Z")

</div>

Having thie same issue in Sequoia 15.0.1. If it wasn’t deprecated before it certainly is now.

This will trigger it.

webcam\_video\_stream = cv2.VideoCapture(0)

AVCaptureDeviceTypeExternal is deprecated for Continuity Cameras. Please use AVCaptureDeviceTypeContinuityCamera and add NSCameraUseContinuityCameraDeviceType to your Info.plist.

---

<div class="post-metadata">

**Author:** ![crackwitz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/crackwitz/32/14_2.png) [@crackwitz](https://forum.opencv.org/u/crackwitz)\
**Post date:** [October 14, 2024, 7:12pm UTC](https://forum.opencv.org/t/warning-deprecated-method-on-mac-os/16504/7 "2024-10-14T19:12:25Z")

</div>

I’d recommend that you check the main repo ([GitHub - opencv/opencv: Open Source Computer Vision Library](http://github.com/opencv/opencv)) for an existing issue. if there isn’t one, start one. that’ll help whoever cares for the videoio backend on macos to plan work on this.
