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


81

我已经升级到Xcode 10High 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.

屏幕截图


2
我对AWS Cognito遇到了同样的问题,您解决了这个问题吗?
YoanGJ

我不得不将操作系统更新为Mojawe才能消失。
侯曼

哦,好的,在我的情况下,我意识到此错误仅在模拟器中发生,而在实际设备中未发生。编辑:我刚刚看到您对模拟器的编辑
YoanGJ

是的,这很烦人,因为您必须使用设备进行测试并且不能再使用模拟器。
侯曼

我的答案解决了您的问题吗?
Departamento B

Answers:


137

在Terminal中运行它使它消失了:

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

3
它只是为模拟器设置一个配置,使子系统com.apple.CoreTelephony没有(“关闭”)日志记录。这比拒绝所有OS消息要好得多,因为其中有些消息(我认为自动布局警告也属于其中)非常有用
Departamento B,

1
@ChikabuZ是否安装了命令行实用程序?如果没有,请告诉我是否有帮助。如果您已经做过,也请告诉我。
Departamento B

4
@DepartamentoB我安装了“ Xcode命令行工具”,但收到相同的错误。
ChikabuZ

10
这就像在小便污渍上喷洒微风。它仍然在那里。只是闻起来更好。
GeneCode

13
不能相信这仍然是Xcode 11+上的问题。苹果开发人员如何自己对此烦恼到足以解决它,这超出了我的范围。
亚伦

9

好吧,它可以在Xcode 10.2中的模拟器和设备上运行。

  1. 添加CoreTelephony.framework(可选)

  2. 在终端中执行以下命令:

    xcrun simctl spawn booted log config --mode "level:off" --subsystem 
    com.apple.CoreTelephony
    
  3. 从Xcode菜单中打开:产品>方案>编辑方案

    在您的环境变量集上 OS_ACTIVITY_MODE = disable

  4. 重新启动模拟器


4
对我来说OS_ACTIVITY_MODE =禁用有效。Xcode 10.3,Mojave
ashishn

尝试的好方法。
knight2016

2
不,它不起作用,它不显示调试消息。因此,也不会出现布局错误。好难过。
Burcu Kutluay

1
仅使用simctl启动的日志配置命令就足够了。关闭OS_ACTIVITY_MODE将隐藏所有这些内容以及所有其他内容(包括NSLogs)。
卡尔·林德伯格

为我工作!(仅在终端中运行xcrun是不够的)
Peter



0

我遇到了同样的问题,这就是我解决的方法:转到“构建阶段”选项卡,搜索Bundle React Native代码和图像,并在shell输入下面添加:

导出NODE_BINARY = node ../node_modules/react-native/scripts/react-native-xcode.sh

这适用于Xcode 11.3.1

希望这对某人有帮助!

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.