Xcode 10은 com.apple.commcenter.core telephony를 손상시키는 것 같습니다.xpc
로 업그레이드했습니다.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.
터미널에서 이것을 실행하면 사라집니다.
xcrun simctl spawn booted log config --mode "level:off" --subsystem com.apple.CoreTelephony
Xcode 10.2에서는 시뮬레이터와 장치 모두에서 작동합니다.
CoreTelephony.framework 추가(선택 사항)
터미널에서 다음 명령 실행:
xcrun simctl spawn booted log config --mode "level:off" --subsystem com.apple.CoreTelephonyXcode 메뉴에서 열기: Product > Scheme > Edit Scheme
환경 변수 집합
OS_ACTIVITY_MODE = disable시뮬레이터 다시 시작
시뮬레이터를 다시 시작하는 방법을 찾았습니다.
실제 장치에서 이 문제를 경험하는 사용자의 경우 CoreTelephony.framework를 프로젝트에 연결하면 문제가 해결됩니다.
하지만 시뮬레이터를 위해 그것을 고치지는 않습니다.
터미널에서 실행합니다.
로그 메시지를 삭제하기 위해
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_ACTIVE_MODE 플래그를 사용하여 로그를 음소거하면 다른 시스템 로그가 음소거됩니다.
From the Xcode menu open: Product > Scheme > Edit Scheme
On your Environment Variables set OS_ACTIVITY_MODE = disable
실제 기기에서 빌드할 때 이 문제에 직면한 사람들은 기기의 와이파이를 켜면 문제가 해결되었습니다.이것은 와이파이 대신 셀룰러가 사용될 때 발생하는 것으로 보입니다.
저도 같은 문제를 겪고 있었는데, 이렇게 해결했습니다. Build Phases 탭으로 이동하여 Bundle React Native 코드와 이미지를 검색하고 셸 입력 아래에 추가합니다.
NODE_BINARY=node ../node_node/node-native/node-native/node/node-native-xcode를 내보냅니다.쉬
이것은 Xcode 11.3.1에서 작동했습니다.
이것이 누군가에게 도움이 되기를 바랍니다!
언급URL : https://stackoverflow.com/questions/52455652/xcode-10-seems-to-break-com-apple-commcenter-coretelephony-xpc
'programing' 카테고리의 다른 글
| Python의 매트릭스 전치 (0) | 2023.05.27 |
|---|---|
| Python을 사용하여 Lovoo API 액세스 (0) | 2023.05.27 |
| 음수 정수를 0으로 설정할 .NET Math 메서드를 찾고 있습니다. (0) | 2023.05.22 |
| 강력한 매개 변수를 사용하여 배열을 허용하는 방법 (0) | 2023.05.22 |
| 스크롤 뷰어 마우스 휠이 스크롤되지 않음 (0) | 2023.05.22 |
