youtube-ios-player-helper icon indicating copy to clipboard operation
youtube-ios-player-helper copied to clipboard

Support for Xcode 12 and iOS 14

Open ElenaVielva opened this issue 4 years ago • 9 comments

I'm testing my app on Xcode 12 and iOS 14. I'm using the 1.0.2 version of the pod

When I try to play the video in the simulator (iOS 14), I am getting this error and the video does not start:

[assertion] Error acquiring assertion: <Error Domain=RBSAssertionErrorDomain Code=3 "Required client entitlement is missing" UserInfo={RBSAssertionAttribute=<RBSDomainAttribute| domain:"com.apple.webkit" name:"MediaPlayback" sourceEnvironment:"(null)">, NSLocalizedFailureReason=Required client entitlement is missing}>
2020-07-14 16:50:11.276431+0200 Chordify[34913:9878656] [ProcessSuspension] 0x127dbe1b0 - ProcessAssertion: Failed to acquire RBS MediaPlayback assertion 'WebKit Media Playback' for process with PID 34916, error: Error Domain=RBSAssertionErrorDomain Code=3 "Required client entitlement is missing" UserInfo={RBSAssertionAttribute=<RBSDomainAttribute| domain:"com.apple.webkit" name:"MediaPlayback" sourceEnvironment:"(null)">, NSLocalizedFailureReason=Required client entitlement is missing}

When I run the app on a device (iOS 13.5.1), the video does play, however I still see errors:

[assertion] Error acquiring assertion: <NSError: 0x281998b40; domain: RBSAssertionErrorDomain; code: 2; reason: "Client is missing required entitlement"> {
    userInfo = {
        RBSAssertionAttribute = <RBSLegacyAttribute: 0x105e77f60; requestedReason: MediaPlayback; reason: MediaPlayback; flags: PreventTaskSuspend | PreventTaskThrottleDown | WantsForegroundResourcePriority>;
    }
}

EDIT: On Xcode 12 beta 2 and 3, the video starts also for iOS 14, but I get the same error messages. Since it is now only error messages it is not critical anymore, however, not desired 🤔

ElenaVielva avatar Jul 14 '20 15:07 ElenaVielva

The same issue...

Senocico avatar Sep 18 '20 08:09 Senocico

Hi @ElenaVielva
I have the same problem with my app on Xcode 12 and with iOS 14. Were you able to solve? I'm going crazy

this is what is returned to me:

Error acquiring assertion: <Error Domain=RBSAssertionErrorDomain Code=3 "Required client entitlement is missing" UserInfo={RBSAssertionAttribute=<RBSDomainAttribute| domain:"com.apple.webkit" name:"MediaPlayback" sourceEnvironment:"(null)">, NSLocalizedFailureReason=Required client entitlement is missing}> 2020-09-19 18:18:34.285359+0200 Sample[38448:1057848] [ProcessSuspension] 0x10a977fc0 - ProcessAssertion: Failed to acquire RBS MediaPlayback assertion 'WebKit Media Playback' for process with PID 38456, error: Error Domain=RBSAssertionErrorDomain Code=3 "Required client entitlement is missing" UserInfo={RBSAssertionAttribute=<RBSDomainAttribute| domain:"com.apple.webkit" name:"MediaPlayback" sourceEnvironment:"(null)">, NSLocalizedFailureReason=Required client entitlement is missing} 2020-09-19 18:18:34.286328+0200 Sample[38448:1057848] [assertion] Error acquiring assertion: <Error Domain=RBSAssertionErrorDomain Code=3 "Required client entitlement is missing" UserInfo={RBSAssertionAttribute=<RBSDomainAttribute| domain:"com.apple.webkit" name:"MediaPlayback" sourceEnvironment:"(null)">, NSLocalizedFailureReason=Required client entitlement is missing}> 2020-09-19 18:18:34.286475+0200 Sample[38448:1057848] [ProcessSuspension] 0x10a977300 - ProcessAssertion: Failed to acquire RBS MediaPlayback assertion 'WebKit Media Playback' for process with PID 38448, error: Error Domain=RBSAssertionErrorDomain Code=3 "Required client entitlement is missing" UserInfo={RBSAssertionAttribute=<RBSDomainAttribute| domain:"com.apple.webkit" name:"MediaPlayback" sourceEnvironment:"(null)">, NSLocalizedFailureReason=Required client entitlement is missing}

jollyvideos avatar Sep 19 '20 16:09 jollyvideos

+1 – I'm seeing this on iOS 14 and Xcode 12 too...

djmckee avatar Sep 20 '20 14:09 djmckee

Any solution you found @ElenaVielva ?

Abhi0725 avatar Sep 29 '20 19:09 Abhi0725

No news. I still get the error/warning. Playing the video is not a problem anymore since beta 2

ElenaVielva avatar Sep 30 '20 12:09 ElenaVielva

same issue....

zifeiyu666 avatar Oct 15 '20 02:10 zifeiyu666

Still no solution for that?

johncodeos avatar Jan 21 '21 14:01 johncodeos

same issue....

Pasoul avatar Mar 03 '21 04:03 Pasoul

@ElenaVielva Hi, have you solved this issue yet? I can now play Xcode12/13 and iOS14/15. But on iOS13 Simulator can not play.

ykws avatar Sep 27 '21 14:09 ykws