나는으로 업그레이드 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.CoreTelephony
-
Xcode 메뉴에서 다음을 엽니 다. Product> Scheme> Edit Scheme
환경 변수 세트에서
OS_ACTIVITY_MODE = disable
-
시뮬레이터 다시 시작
답변
시뮬레이터를 다시 시작하는 해결 방법을 찾았습니다.
답변
실제 장치에서이 문제가 발생하는 경우 CoreTelephony.framework를 프로젝트에 연결하면 문제가 해결됩니다.
그러나 시뮬레이터에 대해서는 수정하지 않습니다.
답변
저도 같은 문제가 발생되었고, 나는 그것을 해결하는 방법이 있습니다 : 탭으로 이동 빌드 페이즈 및 검색 네이티브 코드와 이미지 반작용 번들 아래에 쉘 입력 추가 :
export NODE_BINARY = node ../node_modules/react-native/scripts/react-native-xcode.sh
이것은 Xcode 11.3.1에서 나를 위해 일했습니다.
이것이 누군가를 돕기를 바랍니다!