Crash when trying to get originatingRecipient

According to the documentation (https://developer.apple.com/documentation/avfoundation/avcontentkeyrequest/originatingrecipient?changes=_3&language=objc), starting with ios 18.4, I can get AVContentKeyRecipient from AVContentKeyRequest. But when I try to get it, I get a crash. What could be the issue?

I want to note that I add the asset to the AVContentKeySession using the addContentKeyRecipient method (https://developer.apple.com/documentation/avfoundation/avcontentkeysession/addcontentkeyrecipient(_:)?changes=_3&language=objc).

Answered by RogerAtApple in 875787022

The availability annotations for originatingRecipient are incorrect (and need to be fixed). It is only available in OS 26 and later.

The availability annotations for originatingRecipient are incorrect (and need to be fixed). It is only available in OS 26 and later.

Crash when trying to get originatingRecipient
 
 
Q