# DEPRECATED\_MSG\_ATTRIBUTE methods is required in Swift

**URL:** <https://devforum.zoom.us/t/deprecated-msg-attribute-methods-is-required-in-swift/69817>\
**Category:** macOS\
**Created:** [June 1, 2022, 2:26pm UTC](https://devforum.zoom.us/t/deprecated-msg-attribute-methods-is-required-in-swift/69817 "2022-06-01T14:26:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anton.yereshchenko](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/anton.yereshchenko/32/16916_2.png) [@anton.yereshchenko](https://devforum.zoom.us/u/anton.yereshchenko)\
**Post date:** [June 1, 2022, 2:26pm UTC](https://devforum.zoom.us/t/deprecated-msg-attribute-methods-is-required-in-swift/69817/1 "2022-06-01T14:26:28Z")

</div>

I have figure out that in the new [ZoomSDK version 5.10.6.7530](https://devsupport.zoom.us/hc/en-us/sections/9481918285581-macOS)  
were refactored deprecated methods.

Methods were marked as `NS_DEPRECATED_MAC` in the past  
but now methods are marked `DEPRECATED_MSG_ATTRIBUTE`.

And there is some problem in Swift now - methods that marked as `DEPRECATED_MSG_ATTRIBUTE` are required to implement.

On picture you can see that Xcode added deprecated method  
`onCustomVideoSubscribeFail` to conform to protocol:

 ![Screenshot 2022-06-01 at 17.22.37](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/8/8/885f0ee6c7514099502b836f487af7aa6510dd6b.png)  
 ![Screenshot 2022-06-01 at 17.22.52](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/4/2/42544c779973998c825d911bc02d0cb3f76ddc6b.png)

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [June 6, 2022, 7:41pm UTC](https://devforum.zoom.us/t/deprecated-msg-attribute-methods-is-required-in-swift/69817/2 "2022-06-06T19:41:32Z")

</div>

Hi @anton.yereshchenko,

In the 5.11.0 release of the SDK, we should be updating all deprecated methods to be optional which should resolve this issue. In the meantime you can implement an empty method as a temporary workaround. Apologies for any inconvenience.

Thanks!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [July 7, 2022, 5:41am UTC](https://devforum.zoom.us/t/deprecated-msg-attribute-methods-is-required-in-swift/69817/3 "2022-07-07T05:41:35Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
