Xcode 10 似乎破坏了 com.apple.commcenter.coretelephony.xpc
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/52455652/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Xcode 10 seems to break com.apple.commcenter.coretelephony.xpc
提问by Houman
I have upgraded to Xcode 10
on High Sierra
and now the Rewarded Ad example projectfrom AdMob complains that com.apple.commcenter.coretelephony.xpc
is not working correctly.
我已升级到Xcode 10
on High Sierra
,现在AdMob的奖励广告示例项目抱怨com.apple.commcenter.coretelephony.xpc
无法正常工作。
Is there a new entitlement that I have to enable? I am searching for hours without any clue.
是否有我必须启用的新权利?我在没有任何线索的情况下搜索了几个小时。
UPDATE:This only happens from the simulator. On the device it works fine. They must have added a new restriction.
更新:这只发生在模拟器中。在设备上它工作正常。他们一定是添加了新的限制。
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.
回答by Departamento B
Running this in Terminal made it go away:
在终端中运行它使它消失:
xcrun simctl spawn booted log config --mode "level:off" --subsystem com.apple.CoreTelephony
回答by Jeferson
I found a workaround restarting the simulator.
我找到了重新启动模拟器的解决方法。
回答by pythonNinja
Well it's working on both the simulator and device in Xcode 10.2.
那么它在 Xcode 10.2 中的模拟器和设备上都可以使用。
Add CoreTelephony.framework (Optional)
Executing the following command in Terminal:
xcrun simctl spawn booted log config --mode "level:off" --subsystem com.apple.CoreTelephony
From the Xcode menu open: Product > Scheme > Edit Scheme
On your Environment Variables set
OS_ACTIVITY_MODE = disable
Restart simulator
添加 CoreTelephony.framework(可选)
在终端中执行以下命令:
xcrun simctl spawn booted log config --mode "level:off" --subsystem com.apple.CoreTelephony
从 Xcode 菜单打开:产品 > 方案 > 编辑方案
在您的环境变量集上
OS_ACTIVITY_MODE = disable
重启模拟器
回答by Ernesto Hdez
I was having the same issue, and this is how I solved it: Go to the tab Build Phasesand search for Bundle React Native code and imagesand below shellinput add:
我遇到了同样的问题,这就是我解决它的方法:转到选项卡Build Phases并搜索Bundle React Native code and images并在shell输入下方添加:
export NODE_BINARY=node ../node_modules/react-native/scripts/react-native-xcode.sh
export NODE_BINARY=node ../node_modules/react-native/scripts/react-native-xcode.sh
This worked for me with Xcode 11.3.1
这对我有用 Xcode 11.3.1
Hope this helps someone!
希望这可以帮助某人!
回答by Cristian Ortega
For those who are experiencing this issue in real devices, linking CoreTelephony.framework to the project fixes the problem.
对于在真实设备中遇到此问题的人,将 CoreTelephony.framework 链接到项目可以解决问题。
It does not fix it for the simulator, though.
但是,它没有为模拟器修复它。