更新到Xcode 11 Swift 5.1后,Google AdMob出现错误。

13
自从我升级到Xcode 11后,我的应用程序中的插屏广告将不再加载。(在此之前一切都很好。该应用甚至已发布在App Store上。我们现在正在创建应用的更新版本)
我通过Cocoapods安装了Google AdMobs SDK,并将其更新到最新版本。仍然没有成功。(我按照Google的教程步骤实现了插入广告)这些是我从控制台得到的错误消息:
    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)

有没有人遇到类似的问题或经验,并知道如何解决?任何帮助都会受到赞赏。 非常感谢!


我在 XCode 11.1 的调试控制台中看到了这些错误,这是针对 AdMob 广告横幅测试广告的。测试广告可以在模拟器和设备上加载。 - Luke
1个回答

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

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

10
请问需要翻译的是英文原句还是中文内容呢? - Anton

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接