You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Flutter集成AdMob激励广告报错:target is not running or doesn't have entitlement

Flutter AdMob激励广告领取奖励后RBSServiceErrorDomain错误解决

错误信息

[assertion] Error acquiring assertion: <Error Domain=RBSServiceErrorDomain Code=1 "target is not running or doesn't have entitlement com.apple.runningboard.assertions.webkit" UserInfo={NSLocalizedFailureReason=target is not running or doesn't have entitlement com.apple.runningboard.assertions.webkit}>

[ProcessSuspension] 0x121070180 - ProcessAssertion::acquireSync Failed to acquire RBS assertion 'WebProcess Suspended Assertion' for process with PID=62590, error: Error Domain=RBSServiceErrorDomain Code=1 "target is not running or doesn't have entitlement com.apple.runningboard.assertions.webkit" UserInfo={NSLocalizedFailureReason=target is not running or doesn't have entitlement com.apple.runningboard.assertions.webkit}
Could not signal service com.apple.WebKit.WebContent: 113: Could not find specified service

当前info.plist配置

<key>GADApplicationIdentifier</key>
<string>ca-app-pub-############~#########</string>
  
<key>SKAdNetworkItems</key>
<array>
// a long dictionary I copied from the documentation
</array>

排查方向及解决方法

  • 移除info.plist中的注释:iOS的plist是XML格式,不支持//这类注释,你在SKAdNetworkItems数组里添加的注释会导致配置解析异常,直接删除所有注释,保留完整的SKAdNetworkItem字典内容。
  • 更新google_mobile_ads插件版本:旧版本插件可能和iOS系统(尤其是较新的iOS版本)存在兼容性问题,将pubspec.yaml中的google_mobile_ads升级到最新稳定版,执行flutter pub upgrade后重新构建项目。
  • 清理iOS项目缓存:在iOS项目目录下执行pod deintegrate,然后pod install,同时清理Xcode的Derived Data,重启Xcode和测试设备。
  • 检查奖励回调逻辑:确认领取奖励的回调函数中没有执行会导致Web进程被强制终止的操作,比如立即销毁广告实例、快速跳转页面等,尽量保证广告进程正常结束后再执行后续逻辑。
  • 验证SKAdNetwork配置完整性:确保SKAdNetworkItems数组包含AdMob官方文档要求的所有SKAdNetworkIdentifier,不要遗漏或写错。

内容的提问来源于stack exchange,提问作者Preem Palver2

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.07 00:05:09