Hou*_*man 60 xcode admob xcode10
我已经升级到Xcode 10对High Sierra现在的回报广告示例项目来自AdMob抱怨说,com.apple.commcenter.coretelephony.xpc不能正常工作.
我必须启用新的权利吗?我正在寻找几个小时没有任何线索.
更新: 这只发生在模拟器上.在设备上它工作正常.他们必须增加一个新的限制.
2018-09-22 10:59:39.730813+0100 RewardedVideoExample[1449:26168] libMobileGestalt MobileGestalt.c:890: MGIsDeviceOneOfType is not supported on this platform.
2018-09-22 10:59:40.031746+0100 RewardedVideoExample[1449:26281] Failed to create remote object proxy: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated.}
2018-09-22 10:59:40.031865+0100 RewardedVideoExample[1449:26261] Failed to ping server after delegate was set
2018-09-22 10:59:40.031938+0100 RewardedVideoExample[1449:26262] Failed to create synchronous remote object proxy: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated.}
2018-09-22 10:59:40.032054+0100 RewardedVideoExample[1449:26262] [NetworkInfo] Descriptors query returned error: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated.}
2018-09-22 10:59:40.032353+0100 RewardedVideoExample[1449:26262] Failed to create synchronous remote object proxy: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated.}
2018-09-22 10:59:40.032451+0100 RewardedVideoExample[1449:26262] [NetworkInfo] Descriptors query returned error: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated.}
2018-09-22 10:59:40.035631+0100 RewardedVideoExample[1449:26262] Failed to create synchronous remote object proxy: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated.}
2018-09-22 10:59:40.035714+0100 RewardedVideoExample[1449:26262] [NetworkInfo] Descriptors query returned error: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated.}
2018-09-22 10:59:40.259658+0100 RewardedVideoExample[1449:26314] WF: === Starting WebFilter logging for process RewardedVideoExample
2018-09-22 10:59:40.259805+0100 RewardedVideoExample[1449:26314] WF: _userSettingsForUser : (null)
2018-09-22 10:59:40.259876+0100 RewardedVideoExample[1449:26314] WF: _WebFilterIsActive returning: NO
2018-09-22 10:59:41.020170+0100 RewardedVideoExample[1449:26282] <Google> Cannot find an ad network adapter with the name(s): com.google.DummyAdapter. Remember to link all required ad network adapters and SDKs, and set -ObjC in the 'Other Linker Flags' setting of your build target.
Reward based video ad failed to load: No ad returned from any ad server.
2018-09-22 11:00:09.288227+0100 RewardedVideoExample[1449:26168] [MC] System group container for systemgroup.com.apple.configurationprofiles path is /Users/houmie/Library/Developer/CoreSimulator/Devices/3FF81C00-0DA2-4F98-8964-A84F14FB14A6/data/Containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles
2018-09-22 11:00:09.289859+0100 RewardedVideoExample[1449:26168] [MC] Reading from private effective user settings.
Run Code Online (Sandbox Code Playgroud)
Dep*_*o B 88
在Terminal中运行此命令使其消失:
xcrun simctl spawn booted log config --mode "level:off" --subsystem com.apple.CoreTelephony
Run Code Online (Sandbox Code Playgroud)
pyt*_*nja 15
那么它在 Xcode 10.2 中的模拟器和设备上都可以使用。
添加 CoreTelephony.framework(可选)
在终端中执行以下命令:
xcrun simctl spawn booted log config --mode "level:off" --subsystem
com.apple.CoreTelephony
Run Code Online (Sandbox Code Playgroud)从 Xcode 菜单打开:产品 > 方案 > 编辑方案
在您的环境变量集上 OS_ACTIVITY_MODE = disable
重启模拟器
在终端中运行它,
消失那些日志消息
xcrun simctl spawn booted log config --mode "level:off" --subsystem com.apple.CoreTelephony
Run Code Online (Sandbox Code Playgroud)
显示这些日志消息:
xcrun simctl spawn booted log config --mode "level:default" --subsystem com.apple.CoreTelephony
Run Code Online (Sandbox Code Playgroud)
可能的模式级别:关闭、调试、信息、默认
附加信息:
可以通过以下方式在系统级别设置“com.apple.CoreTelephony”子系统的级别:
sudo log config --mode "level:off" --subsystem com.apple.CoreTelephony
Run Code Online (Sandbox Code Playgroud)
使用 OS_ACTIVITY_MODE 标志静默这些日志将使其他系统日志静默。
From the Xcode menu open: Product > Scheme > Edit Scheme
On your Environment Variables set OS_ACTIVITY_MODE = disable
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
27879 次 |
| 最近记录: |