iOS 14 - Error acquiring assertion

Wally McClure 1 Reputation point
2020-11-24T21:39:34.49+00:00

[assertion] Error acquiring assertion: <Error Domain=RBSAssertionErrorDomain Code=3 "Target is not running or required target entitlement is missing" UserInfo={RBSAssertionAttribute=<RBSDomainAttribute| domain:"com.apple.webkit" name:"Background" sourceEnvironment:"(null)">, NSLocalizedFailureReason=Target is not running or required target entitlement is missing}>

How do I set this entitlement? I've been googling with little success. I am assuming I am doing something dumb and forgetting a setting in either the info.plist of my entitlements.plist. I just haven't been able to find it.

TIA.

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,366 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Alexey Shikov 1 Reputation point
    2020-12-03T16:50:56.29+00:00

    That might sound weird, but ensure the WKWebView has a parent view. If it's not - try to create an empty UIView and add WKWebView as a subview.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.