2015-01-08 1 views
0

Chromecast 용 iOS 발신자 앱에서 작업하고 있습니다. 두 개의 Chromecast 기기를 설정하고 다른 테스트 iPhone으로 전환하고 Chromecast 기기를 검색하려고 시도 할 때까지 deviceDidComeOnline 메시지가 전송되지 않을 때까지 두 기기를 감지하고 연결할 수있었습니다.Chromecast 기기를 검색 할 때 iOS 앱에 '기기 인증 오류'가 발생합니다.

GoogleCast 프레임 워크 버전 2.5.1에서 샘플 앱의 문제를 여기에서 재현 할 수 있습니다 (https://github.com/googlecast/CastVideos-ios). Chromecast를 감지하지 못한 샘플 응용 프로그램에서되는 다음과 같은 콘솔 출력 : 이것은 아이폰 OS 8.0을 실행하는 아이폰 6+에 무슨 일이 일어나고

2015-01-17 07:52:37.314 CastVideos[411:33216] Start Scan 
2015-01-17 07:52:37.315 CastVideos[411:33216] -[GCKDeviceScanner startNetServiceScan] startNetServiceScan 
2015-01-17 07:52:37.341 CastVideos[411:33216] -[GCKNetworkReachability updateStatus] updateStatus 
2015-01-17 07:52:37.345 CastVideos[411:33216] -[GCKDeviceScanner networkReachabilityStatusDidChange:] networkReachabilityStatusDidChange:1 
2015-01-17 07:52:37.345 CastVideos[411:33216] -[GCKDeviceScanner purgeAllOnlineDevices] purgeAllOnlineDevices 
2015-01-17 07:52:37.489 CastVideos[411:33216] -[GCKDeviceScanner startFilteringDevice:] starting filter for device: <0x1780b0b60:GCKDevice> ChromecastDev2 (be1be9dcbaa4cb82678b977203c3ef91) 
2015-01-17 07:52:37.494 CastVideos[411:33216] -[GCKDeviceScanner startFilteringDevice:] starting filter for device: <0x1700a38a0:GCKDevice> ChromecastDev (3df5a88f22a974661a8a3556acafdd2f) 
2015-01-17 07:52:37.629 CastVideos[411:33216] -[GCKCastSecureSocket continueHandshake] Peer trust certificate invalid; disconnecting 
2015-01-17 07:52:37.630 CastVideos[411:33216] -[GCKCastSecureSocket doTeardownWithErrorCode:] doTeardownWithErrorCode:3 
2015-01-17 07:52:37.630 CastVideos[411:33216] __42-[GCKCastSecureSocket initWithBufferSize:]_block_invoke18 Error reading from SSL buffer to stream buffer, status: -50 
2015-01-17 07:52:37.630 CastVideos[411:33216] -[GCKCastSecureSocket doTeardownWithErrorCode:] doTeardownWithErrorCode:1 
2015-01-17 07:52:37.631 CastVideos[411:33216] -[GCKDeviceManager castSocket:didDisconnectWithError:] castSocket:didDisconnectWithError:Error Domain=com.google.GCKError Code=3 "Device authentication failure" UserInfo=0x170272180 {NSLocalizedDescription=Device authentication failure} 
2015-01-17 07:52:37.631 CastVideos[411:33216] -[GCKDeviceManager handleConnectionError:] handleConnectionError error=Error Domain=com.google.GCKError Code=3 "Device authentication failure" UserInfo=0x170272180 {NSLocalizedDescription=Device authentication failure}, _appConnectionState=0 
2015-01-17 07:52:37.631 CastVideos[411:33216] -[GCKDeviceManager handleConnectionError:] giving up on reconnect; _pausedAppID=(null), _wasConnected=0 
2015-01-17 07:52:37.632 CastVideos[411:33216] -[GCKDeviceManager unregisterForAppStateNotifications] unregisterForAppStateNotifications 
2015-01-17 07:52:37.634 CastVideos[411:33216] -[GCKDeviceManager disconnectWithError:isExplicit:] disconnectWithError:(null) 
2015-01-17 07:52:37.634 CastVideos[411:33216] -[GCKDeviceScanner filteringFailedForDevice:withError:] Filter failed for device <0x1700a38a0:GCKDevice> ChromecastDev (3df5a88f22a974661a8a3556acafdd2f) with error Error Domain=com.google.GCKError Code=3 "Device authentication failure" UserInfo=0x170272180 {NSLocalizedDescription=Device authentication failure} 
2015-01-17 07:52:37.634 CastVideos[411:33216] -[GCKDeviceScanner filteringFailedForDevice:withError:] Marking device <0x1700a38a0:GCKDevice> ChromecastDev (3df5a88f22a974661a8a3556acafdd2f) invalid 
2015-01-17 07:52:37.635 CastVideos[411:33216] -[GCKDeviceManager unregisterForAppStateNotifications] unregisterForAppStateNotifications 
2015-01-17 07:52:37.635 CastVideos[411:33216] -[GCKDeviceManager disconnectWithError:isExplicit:] disconnectWithError:(null) 
2015-01-17 07:52:37.635 CastVideos[411:33216] -[GCKCastSecureSocket disconnectWithError:] disconnect 

. 이 휴대 전화에서 다른 Chromecast 호환 앱 (Chromecast, YouTube)을 열면 두 Chromecast 기기가 모두 성공적으로 감지됩니다. Xcode에서 실행하는 응용 프로그램 일 뿐이며,이 특정 테스트 전화에서이 문제가있는 것 같습니다.

여러 다른 테스트 장치에서 동일한 샘플 응용 프로그램을 사용하여 장치/OS와 관련이 있는지 확인했습니다. 두 Chromecast 기기는 다음 아이폰/아이 패드에 문제없이 감지 :

  • 아이폰 6 아이폰 5
  • 아이폰 OS 8.1.2에서 아이폰 OS 8.1.2에
  • 아이폰 6 +
  • 아이폰 OS 8.0.2에 아이폰 OS 8.0에
  • 아이폰 5
  • 아이 패드 에어 아이폰 OS 8.0

어떤 생각에 무엇이 원인이? 미리 감사드립니다.

답변

0

분명히 사용하고 있던 iPhone에 인증서 문제가있었습니다.

설정 -> 일반 -> 재설정 -> 모든 설정 재설정으로 이동하면 문제가 해결되었습니다. 처음에는 네트워크 설정 재설정을 시도했지만 도움이되지 않았습니다. 어쩌면 둘 다의 조합이 그것을한지 확실하지 않습니다.

2

인증서 문제가 전화에서 잘못된 날짜로 인해 발생한 것일 수 있습니다. 이로 인해 인증서 문제가 발생한 다음 Chromecast 문제가 발생할 수 있으므로 날짜 시간을 확인하십시오.

0

기기의 시간과 시간이 잘못되었을 때 이러한 현상이 발생했습니다.

예상대로 수정 한 날짜입니다.