ios - 更新到 Xcode 11 Swift 5.1 后出现 Google AdMob 错误

标签 ios swift admob xcode11 swift5.1

由于我已更新到 Xcode 11,我的应用程序中的插页式广告将不再加载。
(在此之前一切正常。该应用程序甚至在 App Store 上发布。我们现在正在创建该应用程序的更新版本)

我通过 Cocoapods 安装了 Google AdMobs SDK 并将其更新到最新版本。仍然没有成功。 (我按照谷歌教程的所有步骤,如何实现插页式广告)
这些是我从控制台收到的错误消息:

    2019-10-10 21:42:35.543249+0100 BuszZer[76592:876619] <Google> To get test ads on this device, set: request.testDevices = @[ kGADSimulatorID ];
    2019-10-10 21:42:35.599222+0100 BuszZer[76592:876796] [Client] Updating selectors failed with: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated.}
    2019-10-10 21:42:35.599426+0100 BuszZer[76592:876796] [Client] Updating selectors after delegate addition failed with: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated.}
    2019-10-10 21:42:35.599610+0100 BuszZer[76592:876787] [Client] Synchronous remote object proxy returned error: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated.}
    2019-10-10 21:42:35.600170+0100 BuszZer[76592:876787] [Client] Synchronous remote object proxy returned error: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated.}
    2019-10-10 21:42:35.600215+0100 BuszZer[76592:876796] [Client] Updating selectors failed with: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated.}
    2019-10-10 21:42:35.601185+0100 BuszZer[76592:876787] [Client] Synchronous remote object proxy returned error: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated.}
    2019-10-10 21:42:35.601435+0100 BuszZer[76592:876796] [Client] Updating selectors failed with: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated.}
    2019-10-10 21:42:35.608414+0100 BuszZer[76592:876619] [plugin] AddInstanceForFactory: No factory registered for id <CFUUID 0x60000360a1a0> F8BB1C28-BAE8-11D6-9C31-00039315CD46
    2019-10-10 21:42:35.610662+0100 BuszZer[76592:876789]  - <Google>[I-ACS025031] AdMob App ID changed. Original, new: (nil), ca-app-pub-9056820091768756~5451481231
    2019-10-10 21:42:35.611337+0100 BuszZer[76592:876789]  - <Google>[I-ACS023007] Analytics v.60102000 started
    2019-10-10 21:42:35.611517+0100 BuszZer[76592:876789]  - <Google>[I-ACS023008] To enable debug logging set the following application argument: -APMAnalyticsDebugEnabled (see https://help.apple.com/xcode/mac/8.0/#/dev3ec8a1cb4)

有没有人有类似的问题或经历并知道如何解决?任何帮助表示赞赏。
非常感谢!

最佳答案

尝试在终端中运行此命令:

xcrun simctl spawn booted log config \
   --mode "level:off" \
   --subsystem com.apple.CoreTelephony

关于ios - 更新到 Xcode 11 Swift 5.1 后出现 Google AdMob 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58362907/

相关文章:

android - W/PicturePileLayerContent:警告 : painting PicturePile without content

android - 在发布应用程序时删除 AdMob 的测试设备 ID 是个好主意吗?

ios - 测试iphone屏幕是否开/关

ios - segue 后在 View 上保留标签栏?

ios - 新的 EventKit EKCalendar 不会创建?

Swift - 解析字符串中的数学运算

iphone - 如何判断何时删除 subview UIView

android - 在所有 3 个平台(android、ios、windows 手机)上推送通知

ios - 如何使 InputAccessoryView 出现在 UITabBarViewController 的选项卡上方?

android - 将自定义广告尺寸与 PublisherAdView 结合使用时,Google 广告不可见