Target is not running or required target entitlement is missing

I'm trying to monetize my app with MoPub for iOS 14, but my ad is not being shown and I get some errors that include Target is not running or required target entitlement is missing.

According to MoPub Support, this is NOT a problem with MoPub -- it's a problem with my app configuration. However, the problem only occurs if the MoPub framework is added to the project.

Here are the relevant logs:
Code Block
Initialized OM SDK version: 1.3.4-Mopub
Attempting to load ad
[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}>
[ProcessSuspension] 0x10b0b8bc0 - ProcessAssertion: Failed to acquire RBS Background assertion 'WebProcess Background Assertion' for process with PID 18829, error: 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}
SDK initialized and ready to display ads.
Initialized adapters:
No adapters initialized
Could not signal service com.apple.WebKit.WebContent: 113: Could not find specified service
Could not signal service com.apple.WebKit.Networking: 113: Could not find specified service

I tried integrating the MoPub framework manually, and via cocoa pods -- with the same outcome.

Question: What entitlement(s) do I need to add to my app, assuming that this is an entitlements issue? How do I fix these errors?

Thank you!

Edit: I tried adding the "Access WiFi Information" capability and also the "App Transport Security Settings" -> "Allow Arbitrary Loads" .plist entry, to no avail.
That's likely more a question to ask to MoPub directly.

Good luck.
I have a very similar issue (same error messages) without MobPub framework on iPhone 11 PRO (iOS 14.5) in a cordova app.
I opened a stackoverflow question - maybe it helps:
https://stackoverflow.com/questions/67571345/ios-iphone-11-flashing-black-and-white-while-browsler-is-constantly-reloading-r
@JoeWest: could you already solve the issue?

Hi Joe, got any news? I'm facing with this issue too! I've tried to add "Background processing" capability with no avail

Hi @JoeWest,

Same issue but without MobPub framework either (native app though not cordova as @findMarcel).

I've been searching the internet for a fix but found many people encountering this issue without a solution.

Did you figure it out?

Thanks!

Target is not running or required target entitlement is missing
 
 
Q