Xcode 10似乎打破了com.apple.commcenter.coretelephony.xpc

628mspwn  于 2023-02-13  发布在  其他
关注(0)|答案(7)|浏览(123)

我已经在High Sierra上升级到Xcode 10,现在AdMob的Rewarded Ad example project抱怨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.

42fyovps

42fyovps1#

在终端中运行此命令使其消失:

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

relj7zay2#

它在Xcode 10.2中的模拟器和设备上都能正常工作。
1.添加CoreTelephony.框架(可选)
1.在终端中执行以下命令:

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

1.从Xcode菜单打开:产品〉方案〉编辑方案
在环境变量中设置OS_ACTIVITY_MODE = disable
1.重启模拟器

axkjgtzd

axkjgtzd3#

我发现了一个变通方案,可以重新启动模拟器。

3pvhb19x

3pvhb19x4#

对于那些在真实的设备中遇到这个问题的人来说,将CoreTelephony.framework链接到项目可以修复这个问题。
不过,它并没有为模拟器修复该问题。

ohfgkhjo

ohfgkhjo5#

在终端运行这个,

  • 让这些日志消息消失
xcrun simctl spawn booted log config --mode "level:off" --subsystem com.apple.CoreTelephony
  • 显示这些日志消息:
xcrun simctl spawn booted log config --mode "level:default"  --subsystem com.apple.CoreTelephony

可能的模式级别:关闭、调试、信息、默认

其他信息:

可以在系统级别上设置“com.apple.CoreTelephony”子系统的级别:

sudo log config --mode "level:off"  --subsystem com.apple.CoreTelephony

使用OS_ACTIVITY_MODE标志使这些日志静默将使其他系统日志静默。

From the Xcode menu open: Product > Scheme > Edit Scheme

On your Environment Variables set OS_ACTIVITY_MODE = disable
k4ymrczo

k4ymrczo6#

对于在真实的设备上构建时面临这个问题的人来说,打开设备上的WiFi解决了这个问题。当使用Hive而不是WiFi时,这似乎会触发。

uqdfh47h

uqdfh47h7#

我也遇到过同样的问题,我是这样解决的:转到选项卡构建阶段并搜索Bundle React本机代码和映像以及下面的shell输入添加:

    • 导出节点二进制=节点../节点模块/React Native/脚本/www.example.comreact-native-xcode.sh

这对我在Xcode 11.3.1中很有效
希望这对某人有帮助!

相关问题